diff --git a/Objective-J/sprintf.js b/Objective-J/sprintf.js index 9ad4723a5..b90b1b785 100644 --- a/Objective-J/sprintf.js +++ b/Objective-J/sprintf.js @@ -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);