Browse Source

Improve search string normalization

Thibaut 10 years ago
parent
commit
ef7dbbe7b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/app/searcher.coffee

+ 1 - 1
assets/javascripts/app/searcher.coffee

@@ -113,7 +113,7 @@ class app.Searcher
     fuzzy_min_length: 3
 
   SEPARATORS_REGEXP = /\:?\ |#|::|->/g
-  PARANTHESES_REGEXP = /\(.*?\)$/
+  PARANTHESES_REGEXP = /\(\w.*?\)$/
   EVENT_REGEXP = /\ event$/
   DOT_REGEXP = /\.+/g
   WHITESPACE_REGEXP = /\s/g