浏览代码

Improve search for entries with "-" in the name

Thibaut Courouble 9 年之前
父节点
当前提交
9c9b2aca0d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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$/