mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:27:57 +01:00
use a regexp literal for matching the leader token in :map
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user