mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
IE uses an empty string as the value of an empty capture group.
This commit is contained in:
1 parent
8427697a4b
commit
8ca2a1bf5b
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user