Escape 0xFF still with "\x", not "\u"

redux
David Majda 14 years ago
parent d5caaa7877
commit aa2327191f

@ -135,7 +135,7 @@ PEG.compiler.emitter = function(ast) {
" function escape(ch) {",
" var charCode = ch.charCodeAt(0);",
" ",
" if (charCode < 0xFF) {",
" if (charCode <= 0xFF) {",
" var escapeChar = 'x';",
" var length = 2;",
" } else {",

@ -29,7 +29,7 @@ PEG.parser = (function(){
function escape(ch) {
var charCode = ch.charCodeAt(0);
if (charCode < 0xFF) {
if (charCode <= 0xFF) {
var escapeChar = 'x';
var length = 2;
} else {

@ -61,7 +61,7 @@ function padLeft(input, padding, length) {
function escape(ch) {
var charCode = ch.charCodeAt(0);
if (charCode < 0xFF) {
if (charCode <= 0xFF) {
var escapeChar = 'x';
var length = 2;
} else {

Loading…
Cancel
Save