Improve search for entries with "-" in the name

This commit is contained in:
Thibaut Courouble 2016-03-06 11:08:06 -05:00
parent 4b760a24d3
commit 9c9b2aca0d

View file

@ -112,7 +112,7 @@ class app.Searcher
max_results: app.config.max_results
fuzzy_min_length: 3
SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)/g
SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)|\-(?=\w)/g
INFO_PARANTHESES_REGEXP = /\ \(\w+?\)$/
EMPTY_PARANTHESES_REGEXP = /\(\)/
EVENT_REGEXP = /\ event$/