mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-07 19:27:12 +00:00
Fix for %% being broken in sprintf (minor bugfix for press message showing undefined, larger press bugs remain).
Reviewed by me.
This commit is contained in:
@@ -42,10 +42,12 @@ exports.sprintf = function(format)
|
||||
}
|
||||
index += t.length;
|
||||
|
||||
if (t.charAt(0) != "%")
|
||||
{
|
||||
if (t.charAt(0) !== "%")
|
||||
result += t;
|
||||
}
|
||||
|
||||
else if (t === "%%")
|
||||
result += "%";
|
||||
|
||||
else
|
||||
{
|
||||
var subtokens = t.match(tagRegex);
|
||||
|
||||
Reference in New Issue
Block a user