Linksafe.cr
linksafe
Hi! I'm Linksafe and I use a domain whitelist to block harmful urls in messages.
Installation
-
Add the dependency to your
shard.yml
:dependencies: linksafe: github: mixflame/linksafe
-
Run
shards install
Usage
require "linksafe"
Linksafe.kosher?("http://google.com") #=> true
Linksafe.kosher_string!("Check this out http://unsafesite.com") #=> "Check this out [link removed]"
kosher_string!
supports multiple urls being in a string.
Development
Fork, clone, run tests, add domains to whitelist, edit code, run tests, commit, push, pull request.
Contributing
- Fork it (https://github.com/mixflame/linksafe/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Jonathan Silverman - creator and maintainer
Repository
Linksafe.cr
Owner
Statistic
- 1
- 1
- 0
- 0
- 0
- over 4 years ago
- August 20, 2020
License
MIT License
Links
Synced at
Mon, 12 May 2025 19:32:57 GMT
Languages