Browse Source

Improve search for strings containing '$'

Fix #272.
Thibaut 10 years ago
parent
commit
97fe54dfe7
1 changed files with 1 additions and 1 deletions
  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 = /\:?\ |#|::|->/g
+  SEPARATORS_REGEXP = /\:?\ |#|::|->|\$(?=\w)/g
   INFO_PARANTHESES_REGEXP = /\(\w+?\)$/
   EMPTY_PARANTHESES_REGEXP = /\(\)/
   EVENT_REGEXP = /\ event$/