IE uses an empty string as the value of an empty capture group.

This commit is contained in:
Brian Donovan committed 2010-10-22 14:41:31 -07:00
1 parent 8427697a4b
commit 8ca2a1bf5b
1 file changed
+1 -1
+1 -1
View File
@@ -62,7 +62,7 @@ exports.sprintf = function(format)
length = subtokens[6],
specifier = subtokens[7];
if (argIndex === undefined)
if (argIndex === undefined || argIndex === null || argIndex === "")
argIndex = arg++;
else
argIndex = Number(argIndex);