aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-06-21 03:38:02 -0700
committerJez Ng2012-06-21 03:38:02 -0700
commit44425f177608f1fc8c82a5301f2c11b9b9e050ff (patch)
tree08c7150ce6f441da8ede8e1c03499649365ca2cf
parentbe5ad2ddb59ba24dfce9cab350b3e09de98df9ea (diff)
downloadvimium-44425f177608f1fc8c82a5301f2c11b9b9e050ff.tar.bz2
Fix regex searching.
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 1 insertions, 1 deletions
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