Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/src/javascript/tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var Tokenizer = function(input_string, options) {
BaseTokenizer.call(this, input_string, options);

this._patterns.whitespace = this._patterns.whitespace.matching(
/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
/\u00A0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
/\u2028\u2029/.source);

var pattern_reader = new Pattern(this._input);
Expand Down
2 changes: 1 addition & 1 deletion python/jsbeautifier/javascript/acorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
+ "])+"
)

_nonASCIIwhitespace = re.compile(r"[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]")
_nonASCIIwhitespace = re.compile(r"[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]")

# Whether a single character denotes a newline.
newline = re.compile(r"[\n\r\u2028\u2029]")
Expand Down
2 changes: 1 addition & 1 deletion python/jsbeautifier/javascript/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(self, input_scanner, acorn, options):
BaseTokenizerPatterns.__init__(self, input_scanner)

self.whitespace = self.whitespace.matching(
r"\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff",
r"\u00A0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff",
r"\u2028\u2029",
)

Expand Down
6 changes: 6 additions & 0 deletions test/data/html/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4414,6 +4414,12 @@ exports.test_data = {
'</style>'
]
}]
}, {
name: "PR #2459 Mongolian Vowel Separator",
description: "",
tests: [{
unchanged: "<p>ᠬᠠᠷ᠎ᠠ</p>"
}]
}, {
name: "New Test Suite"
}]
Expand Down