From 44425f177608f1fc8c82a5301f2c11b9b9e050ff Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Thu, 21 Jun 2012 03:38:02 -0700 Subject: Fix regex searching. --- content_scripts/vimium_frontend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 1e4f2ec5..3bc84e44 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -585,7 +585,7 @@ updateFindModeQuery = -> # sequentially so the browser handles the scrolling / text selection. if findModeQuery.isRegex try - pattern = new RegExp(findModeQuery.parsedQuery, "g" + (findModeQuery.ignoreCase ? "i" : "")) + pattern = new RegExp(findModeQuery.parsedQuery, "g" + (if findModeQuery.ignoreCase then "i" else "")) catch error # if we catch a SyntaxError, assume the user is not done typing yet and return quietly return -- cgit v1.2.3