diff options
| author | Jez Ng | 2013-01-02 17:05:08 -0500 |
|---|---|---|
| committer | Jez Ng | 2013-01-02 17:05:31 -0500 |
| commit | 4dba0638e5872318423bbc9c13f4fbebf3b14ce9 (patch) | |
| tree | 3934b6c2df8c463be375d1198ff3de44a68f04cd /content_scripts | |
| parent | 53354147f366cfe933d31db98bce5c8b1f735ad3 (diff) | |
| download | vimium-4dba0638e5872318423bbc9c13f4fbebf3b14ce9.tar.bz2 | |
Make smartcase locale-aware.
Diffstat (limited to 'content_scripts')
| -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 a869e0ed..ca7af5ae 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -536,7 +536,7 @@ updateFindModeQuery = -> return match # default to 'smartcase' mode, unless noIgnoreCase is explicitly specified - findModeQuery.ignoreCase = !hasNoIgnoreCaseFlag && !/[A-Z]/.test(findModeQuery.parsedQuery) + findModeQuery.ignoreCase = !hasNoIgnoreCaseFlag && !Utils.hasUpperCase(findModeQuery.parsedQuery) # if we are dealing with a regex, grep for all matches in the text, and then call window.find() on them # sequentially so the browser handles the scrolling / text selection. |
