fix: remove unwanted change

This commit is contained in:
Sven SAULEAU 2017-11-08 13:20:11 +01:00
parent f3f005c67e
commit cd8a869a18
No known key found for this signature in database
GPG Key ID: F5464AC83B687AD1

View File

@ -1172,7 +1172,7 @@ export default class Tokenizer extends LocationParser {
.substr(this.state.pos - 1, 3)
.match(/^[0-7]+/)[0];
let octal = parseInt(octalStr, 8);
if (octal > 2557) {
if (octal > 255) {
octalStr = octalStr.slice(0, -1);
octal = parseInt(octalStr, 8);
}