diff options
author | alon@honor <none@none> | 2010-10-21 10:07:21 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-21 10:07:21 -0700 |
commit | 9cbeceb19e293eff976e813fe3564f0b2507e22b (patch) | |
tree | 147f0996a58d0ac27588897bb111390c611e5361 /src | |
parent | e28f46d0b376cd3a23040dcf12093157924aa4d5 (diff) |
support for 'c' in printf
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 0416a25d..79a1b5b1 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -204,6 +204,10 @@ function __formatString() { ret = ret.concat(String_copy(arguments[argIndex])); argIndex += 1; textIndex += 2; + } else if (curr == '%'.charCodeAt(0) && next == 'c'.charCodeAt(0)) { + ret = ret.concat(arguments[argIndex]); + argIndex += 1; + textIndex += 2; } else { ret.push(curr); textIndex += 1; |