From 83357376414522a68ec284285cae64d0c510fd8e Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 14 Jun 2014 11:17:50 -0400 Subject: [PATCH] Fix indexing of entries with "event" in the name --- assets/javascripts/models/entry.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/models/entry.coffee b/assets/javascripts/models/entry.coffee index 1eb179c6..1a529181 100644 --- a/assets/javascripts/models/entry.coffee +++ b/assets/javascripts/models/entry.coffee @@ -12,7 +12,7 @@ class app.models.Entry extends app.Model @name .toLowerCase() .replace '...', ' ' - .replace ' event', '' + .replace /\ event$/, '' .replace SEPARATORS_REGEXP, '.' .replace /\.+/g, '.' .replace PARANTHESES_REGEXP, ''