1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:32:25 +01:00

allow for option names with underscores

This commit is contained in:
Doug Kearns
2007-09-28 13:28:16 +00:00
parent a2f048c32a
commit 378c8fcf20

View File

@@ -1027,7 +1027,7 @@ function Commands() //{{{
else
{
// 1 2 3 4 5 6
var matches = args.match(/^\s*(no|inv)?([a-z]+)([?&!])?(([+-])?=(.*))?/);
var matches = args.match(/^\s*(no|inv)?([a-z_]+)([?&!])?(([+-])?=(.*))?/);
if (!matches)
{
vimperator.echoerr("E518: Unknown option: " + args);