Improve search string normalization

pull/241/head
Thibaut 10 years ago
parent 7b94616502
commit ef7dbbe7b5

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

Loading…
Cancel
Save