History

Improve search for entries with "-" in the name

Thibaut Courouble committed 10 years ago

Commit 9c9b2ac1 parent 4b760a21 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/searcher.coffee+1−1
@@ -112,7 +112,7 @@ class app.Searcher · 111 unmodified lines
112112 max_results: app.config.max_results
113113 fuzzy_min_length: 3
114114
115− SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)/g
115+ SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)|\-(?=\w)/g
116116 INFO_PARANTHESES_REGEXP = /\ \(\w+?\)$/
117117 EMPTY_PARANTHESES_REGEXP = /\(\)/
118118 EVENT_REGEXP = /\ event$/