Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
liuxingbaoyu and nicolo-ribaudo committed Feb 9, 2023
1 parent 9faf1c5 commit 7ddd8b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -19,7 +19,7 @@
],
"dependencies": {
"@babel/helper-annotate-as-pure": "workspace:^",
"regexpu-core": "https://github.com/liuxingbaoyu/regexpu-core#head=modifiers"
"regexpu-core": "^5.3.0"
},
"peerDependencies": {
"@babel/core": "^7.0.0"
Expand Down
Expand Up @@ -72,7 +72,7 @@ export function canSkipRegexpu(
return false;
}

if (options.modifiers === "transform" && /\(\?.{1,10}:/.test(pattern)) {
if (options.modifiers === "transform" && /\(\?[\w-]+:/.test(pattern)) {
return false;
}

Expand Down
@@ -1,7 +1,7 @@
{
"name": "@babel/plugin-proposal-regexp-modifiers",
"version": "7.19.1",
"description": "TODO",
"description": "Compile inline regular expression modifiers",
"homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-regexp-modifiers",
"license": "MIT",
"publishConfig": {
Expand Down

0 comments on commit 7ddd8b0

Please sign in to comment.