Explorar o código

Improve search for entries with "-" in the name

Thibaut Courouble %!s(int64=9) %!d(string=hai) anos
pai
achega
9c9b2aca0d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      assets/javascripts/app/searcher.coffee

+ 1 - 1
assets/javascripts/app/searcher.coffee

@@ -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$/