Skip to content

Commit

Permalink
Match any case of http
Browse files Browse the repository at this point in the history
Related to #41
  • Loading branch information
jc00ke authored and reidab committed Oct 4, 2013
1 parent a190be8 commit ae8fc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def clone
# Checks if the description has too many links
# which is probably spam
def too_many_links?(description)
description.present? && description.scan(/http/).size > 3
description.present? && description.scan(/http/i).size > 3
end

# Export +events+ to an iCalendar file.
Expand Down

0 comments on commit ae8fc15

Please sign in to comment.