Guest User

Untitled

a guest
Feb 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def can_haz_link?(link)
  2. (/^\//.match(link) || Regexp.compile("^"+@base).match(link)) && !@collection.include?(link)
  3. end
Add Comment
Please, Sign In to add comment