fix unicode regexes stripping their unicode flag before being passed on two regexpu - fixes #1009
This commit is contained in:
parent
33f7c0b67e
commit
24807120bf
@ -13,6 +13,11 @@ _Note: Gaps between patch versions are faulty/broken releases._
|
||||
|
||||
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
||||
|
||||
## 4.7.11
|
||||
|
||||
* **Bug Fix**
|
||||
* Fix unicode regexes stripping their unicode flag before being passed on two `regexpu`.
|
||||
|
||||
## 4.7.10
|
||||
|
||||
* **Internal**
|
||||
|
||||
@ -7,6 +7,6 @@ export function check(node) {
|
||||
|
||||
export function Literal(node) {
|
||||
if (!regex.is(node, "u")) return;
|
||||
regex.pullFlag(node, "u");
|
||||
node.regex.pattern = rewritePattern(node.regex.pattern, node.regex.flags);
|
||||
regex.pullFlag(node, "u");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user