From e825758435fd5d77d6e1254210afec3ffe4651f0 Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Sun, 12 Dec 2010 12:11:38 +0100 Subject: 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 "" could not be parsed correctly. This fixes https://github.com/philc/vimium/issues#issue/110 . --- background_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (alt+b), (the left arrow) or // 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, -- cgit v1.2.3