Przeglądaj źródła

Fix indexing of entries with "event" in the name

Thibaut 11 lat temu
rodzic
commit
8335737641
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      assets/javascripts/models/entry.coffee

+ 1 - 1
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, ''