Skip to content

Commit c322e7a

Browse files
committed
Use search instead of (less efficient) match
1 parent 359693a commit c322e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content_scripts/vimium_frontend.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ setPassKeys = (newPassKeys) ->
359359
passKeyGroups = passKeys.split " "
360360
splitPassKeys = []
361361
for passKeyGroup in passKeyGroups
362-
namedKeyMatch = passKeyGroup.match namedKeyRegex
362+
namedKeyMatch = passKeyGroup.search namedKeyRegex
363363
if namedKeyMatch # The current space delimited group is a single named key.
364364
splitPassKeys.push passKeyGroup # Push this to as a single key
365365
else

0 commit comments

Comments
 (0)