History

Improve search string normalization

Thibaut committed 11 years ago

Commit ef7dbbe1 parent 7b946161 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/searcher.coffee+1−1
@@ -113,7 +113,7 @@ class app.Searcher · 112 unmodified lines
113113 fuzzy_min_length: 3
114114
115115 SEPARATORS_REGEXP = /\:?\ |#|::|->/g
116− PARANTHESES_REGEXP = /\(.*?\)$/
116+ PARANTHESES_REGEXP = /\(\w.*?\)$/
117117 EVENT_REGEXP = /\ event$/
118118 DOT_REGEXP = /\.+/g
119119 WHITESPACE_REGEXP = /\s/g