The dot "." in any organisation name is replaced with a dash "-" when searching for tagged events

This commit is contained in:
echarp 2017-07-01 17:25:15 +02:00
parent 621fcdbb2c
commit e446007d66

View File

@ -73,7 +73,7 @@ class Orga < ApplicationRecord
end
def name_as_tag
name.gsub(/\AL'/, '').gsub(/[\s\*']/, '-').delete ':'
name.gsub(/\AL'/, '').gsub(/[\s\*'\.]/, '-').delete ':'
end
def as_json(_options = {})