Skip to content

Commit

Permalink
fix escape_strings issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFalloutOf76 committed Apr 27, 2024
1 parent 097e378 commit 683db11
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions js/src/javascript/tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ Tokenizer.prototype._read_string = function(c) {
resulting_string += this._input.next();
}

resulting_string = resulting_string.replace(acorn.allLineBreaks, '\n');

return this._create_token(TOKEN.STRING, resulting_string);
}

Expand Down
2 changes: 0 additions & 2 deletions python/jsbeautifier/javascript/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ def _read_string(self, c):
if self._input.peek() == c:
resulting_string += self._input.next()

resulting_string = re.sub(self.acorn.allLineBreaks, "\n", resulting_string)

return self._create_token(TOKEN.STRING, resulting_string)

return None
Expand Down

0 comments on commit 683db11

Please sign in to comment.