Cleaning up further coding style inconsistencies that have crept in

This commit is contained in:
Jermolene
2014-01-03 10:50:00 +00:00
parent 8fc5c1d4a0
commit 1a74e2538c
6 changed files with 8 additions and 8 deletions

View File

@@ -275,7 +275,7 @@ exports.unescapeLineBreaks = function(s) {
// Copied from peg.js, thanks to David Majda
exports.escape = function(ch) {
var charCode = ch.charCodeAt(0);
if (charCode <= 0xFF) {
if(charCode <= 0xFF) {
return '\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());
} else {
return '\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);