Fix indexing of entries with "event" in the name

pull/110/head
Thibaut 11 years ago
parent 1819d71ff7
commit 8335737641

@ -12,7 +12,7 @@ class app.models.Entry extends app.Model
@name @name
.toLowerCase() .toLowerCase()
.replace '...', ' ' .replace '...', ' '
.replace ' event', '' .replace /\ event$/, ''
.replace SEPARATORS_REGEXP, '.' .replace SEPARATORS_REGEXP, '.'
.replace /\.+/g, '.' .replace /\.+/g, '.'
.replace PARANTHESES_REGEXP, '' .replace PARANTHESES_REGEXP, ''

Loading…
Cancel
Save