tenderlove/rails_autolink

Edge case: "awww..." is matched

eric-wood opened this issue · 5 comments

I'm not sure how important this is, but I figured it was worth documenting!

It turns out the regex used will match the string "awww...", which apparently occurs on a regular basis in our application :\

Example using the autolink regex: http://rubular.com/r/YsunYu1etE

Disallow the posting of cute cat pictures in your application. Problem solved.

Good point! I'll see if I can adapt https://github.com/harthur/kittydar to keep the kittens at bay.

Suggested patch to the regex: http://rubular.com/r/YsunYu1etE

I can submit a patch if anyone wants this fixed :)

👎 for disallowing the posting of cute cat pictures in ANY application. All applications should have AT LEAST one feature which provides pictures of cats.

Fixed in #75 and released in v1.1.7. Credits to @ItsYou for the original solution in #57. Closing.