History

Fix parenthesis normalizaation in search strings

Thibaut committed 11 years ago

Commit 93dcd381 parent f182fb51 file · +4 −2Browse files

Unified · Split

assets/javascripts/app/searcher.coffee+4−2
@@ -113,7 +113,8 @@ class app.Searcher · 112 unmodified lines
113 fuzzy_min_length: 3113 fuzzy_min_length: 3
114 114
115 SEPARATORS_REGEXP = /\:?\ |#|::|->/g115 SEPARATORS_REGEXP = /\:?\ |#|::|->/g
116 PARANTHESES_REGEXP = /\(\w.*?\)$/116 INFO_PARANTHESES_REGEXP = /\(\w+?\)$/
117 EMPTY_PARANTHESES_REGEXP = /\(\)/
117 EVENT_REGEXP = /\ event$/118 EVENT_REGEXP = /\ event$/
118 DOT_REGEXP = /\.+/g119 DOT_REGEXP = /\.+/g
119 WHITESPACE_REGEXP = /\s/g120 WHITESPACE_REGEXP = /\s/g
@@ -129,7 +130,8 @@ class app.Searcher · 9 unmodified lines
129 .replace EVENT_REGEXP, EMPTY_STRING130 .replace EVENT_REGEXP, EMPTY_STRING
130 .replace SEPARATORS_REGEXP, SEPARATOR131 .replace SEPARATORS_REGEXP, SEPARATOR
131 .replace DOT_REGEXP, SEPARATOR132 .replace DOT_REGEXP, SEPARATOR
132 .replace PARANTHESES_REGEXP, EMPTY_STRING133 .replace INFO_PARANTHESES_REGEXP, EMPTY_STRING
134 .replace EMPTY_PARANTHESES_REGEXP, EMPTY_STRING
133 .replace WHITESPACE_REGEXP, EMPTY_STRING135 .replace WHITESPACE_REGEXP, EMPTY_STRING
134 136
135 constructor: (options = {}) ->137 constructor: (options = {}) ->