diff options
| author | Clemens Buchacher | 2010-12-12 12:11:38 +0100 |
|---|---|---|
| committer | Clemens Buchacher | 2010-12-12 12:26:07 +0100 |
| commit | e825758435fd5d77d6e1254210afec3ffe4651f0 (patch) | |
| tree | 59d254aa0a5f727c327d51ef4e8484c60d523560 | |
| parent | 7df813ef221be04e4d4a459ecc941dcbddfb6056 (diff) | |
| download | vimium-e825758435fd5d77d6e1254210afec3ffe4651f0.tar.bz2 | |
fix named key regex
This regular expression was broken since commit 9d0061dc (Allow
mapping to arrow keys and f-keys). As a result, keys such as for
example "<c-f>" could not be parsed correctly.
This fixes https://github.com/philc/vimium/issues#issue/110 .
| -rw-r--r-- | background_page.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html index f4a40ffa..9ed81509 100644 --- a/background_page.html +++ b/background_page.html @@ -20,7 +20,7 @@ // Keys are either literal characters, or "named" - for example <a-b> (alt+b), <left> (the left arrow) or <f12> // This regular expression captures two groups, the first is a named key, the second is the remainder of the string. - var namedKeyRegex = /^(<[amc-].|(?:[amc]-)?[a-z0-9]{2,5}>)(.*)$/; + var namedKeyRegex = /^(<(?:[amc]-.|(?:[amc]-)?[a-z0-9]{2,5})>)(.*)$/; var defaultSettings = { scrollStepSize: 60, |
