From ef7dbbe7b540f887d5b41e0afd3d852d0a5afe96 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Mon, 3 Aug 2015 17:33:03 -0400 Subject: [PATCH] Improve search string normalization --- assets/javascripts/app/searcher.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app/searcher.coffee b/assets/javascripts/app/searcher.coffee index 36814add..fbce628a 100644 --- a/assets/javascripts/app/searcher.coffee +++ b/assets/javascripts/app/searcher.coffee @@ -113,7 +113,7 @@ class app.Searcher fuzzy_min_length: 3 SEPARATORS_REGEXP = /\:?\ |#|::|->/g - PARANTHESES_REGEXP = /\(.*?\)$/ + PARANTHESES_REGEXP = /\(\w.*?\)$/ EVENT_REGEXP = /\ event$/ DOT_REGEXP = /\.+/g WHITESPACE_REGEXP = /\s/g