Fix \v being treated as v in IE < 9

IE < 9 treats '\v' as 'v' instead of a vertical tab ('\u000b').
Read more: http://mathiasbynens.be/notes/javascript-escapes
This commit is contained in:
Oskar Schöldström
2013-03-23 18:06:49 +02:00
committed by Marijn Haverbeke
parent 76be1f8eee
commit a8a24f538b

View File

@@ -826,7 +826,7 @@
case 85: out += String.fromCharCode(readHexChar(8)); break; // 'U'
case 116: out += "\t"; break; // 't' -> '\t'
case 98: out += "\b"; break; // 'b' -> '\b'
case 118: out += "\v"; break; // 'v' -> '\u000b'
case 118: out += "\u000b"; break; // 'v' -> '\u000b'
case 102: out += "\f"; break; // 'f' -> '\f'
case 48: out += "\0"; break; // 0 -> '\0'
case 13: if (input.charCodeAt(tokPos) === 10) ++tokPos; // '\r\n'