diff options
| author | Jez Ng | 2012-06-21 03:38:02 -0700 | 
|---|---|---|
| committer | Jez Ng | 2012-06-21 03:38:02 -0700 | 
| commit | 44425f177608f1fc8c82a5301f2c11b9b9e050ff (patch) | |
| tree | 08c7150ce6f441da8ede8e1c03499649365ca2cf | |
| parent | be5ad2ddb59ba24dfce9cab350b3e09de98df9ea (diff) | |
| download | vimium-44425f177608f1fc8c82a5301f2c11b9b9e050ff.tar.bz2 | |
Fix regex searching.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 | 
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 | 
