1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 05:07:59 +01:00

use a regexp literal for matching the leader token in :map

This commit is contained in:
Doug Kearns
2007-10-22 06:39:59 +00:00
parent af360fbc77
commit fe2986bf70

View File

@@ -792,7 +792,7 @@ vimperator.Commands = function() //{{{
var matches = args.match(/^([^\s]+)(?:\s+(.+))?$/)
var [lhs, rhs] = [matches[1], matches[2]];
var leader_reg = new RegExp('<Leader>', 'i');
var leader_reg = /<Leader>/i;
if (leader_reg.test(lhs))
{