1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-26 00:11:30 +02: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
+1 -1
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++)
{ {