diff --git a/lib/Connection.js b/lib/Connection.js index ca1f37f..e765ff5 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -33,8 +33,7 @@ var MAX_INT = 9007199254740992, RE_BACKSLASH = /\\/g, RE_DBLQUOTE = /"/g, RE_ESCAPE = /\\\\/g, - RE_INTEGER = /^\d+$/, - RE_PUSH_TEXT_CODES = /^APPENDUID|COPYUID$/i; + RE_INTEGER = /^\d+$/; function Connection(config) { if (!(this instanceof Connection)) diff --git a/lib/Parser.js b/lib/Parser.js index 72f423b..2fb25e1 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -337,7 +337,7 @@ function parseId(text, literals) { if (r[0] === null) return null; for (var i = 0, len = r[0].length; i < len; i += 2) - id[r[0][i].toLowerCase()] = r[0][i + 1] + id[r[0][i].toLowerCase()] = r[0][i + 1]; return id; } @@ -795,7 +795,7 @@ function decodeWords(str, state) { var pendoffset = -1; state.replaces = []; - var bytes, m, i, len, j, lenj, seq; + var bytes, m, i, j, lenj, seq; // generate replacement substrings and their positions while (m = RE_ENCWORD.exec(str)) { state.consecutive = (pendoffset > -1