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

allow multiple ranges to be specified to :delmarks - missing global regexp flag

This commit is contained in:
Doug Kearns
2007-08-11 13:18:01 +00:00
parent 125781daf6
commit d8a68f1156

View File

@@ -401,7 +401,7 @@ function Commands() //{{{
return; return;
} }
// check for illegal ranges - only allow a-z A-Z 0-9 // check for illegal ranges - only allow a-z A-Z 0-9
if (matches = args.match(/[a-zA-Z0-9]-[a-zA-Z0-9]/)) if (matches = args.match(/[a-zA-Z0-9]-[a-zA-Z0-9]/g))
{ {
for (var i = 0; i < matches.length; i++) for (var i = 0; i < matches.length; i++)
{ {