diff options
author | Lukas Balaga <lukas.balaga@gmail.com> | 2016-02-27 16:31:18 -0800 |
---|---|---|
committer | Lukas Balaga <lukas.balaga@gmail.com> | 2016-02-27 16:58:14 -0800 |
commit | 92bb5177b19cc9e99c643c6dc7f9e35331cde2db (patch) | |
tree | 57e73343a2f04602e68ac020dc0e4127ae565f88 /contrib | |
parent | da4f5e818417e94858c643be531f7a388bacf200 (diff) | |
download | babel-92bb5177b19cc9e99c643c6dc7f9e35331cde2db.tar.gz |
Apply pre-commit fixes.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/babel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/babel.js b/contrib/babel.js index 8ebab97..506efeb 100644 --- a/contrib/babel.js +++ b/contrib/babel.js @@ -138,7 +138,7 @@ var babel = new function() { * * babel.format(_('Hello %s'), name) * babel.format(_('Progress: %(percent)s%%'), {percent: 100}) - */ + */ this.format = function() { var arg, string = arguments[0], idx = 0; if (arguments.length == 1) @@ -153,7 +153,7 @@ var babel = new function() { return string.replace(formatRegex, function(all, name, type) { if (all[0] == all[1]) return all.substring(1); var value = arg[name || idx++]; - return (type == 'i' || type == 'd') ? +value : value; + return (type == 'i' || type == 'd') ? +value : value; }); } |