Skip to content

Commit

Permalink
fix(dynamic-import-vars): simplify regex (#1751)
Browse files Browse the repository at this point in the history
refactor(dynamic-import-vars): simplify regex
  • Loading branch information
bluwy authored Sep 22, 2024
1 parent 0bcd393 commit 34abd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dynamic-import-vars/src/dynamic-import-to-glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function dynamicImportToGlob(node, sourceString) {
}

// Disallow ./*.ext
const ownDirectoryStarExtension = /^\.\/\*\.[\w]+$/;
const ownDirectoryStarExtension = /^\.\/\*\.\w+$/;
if (ownDirectoryStarExtension.test(glob)) {
throw new VariableDynamicImportError(
`${
Expand Down

0 comments on commit 34abd4f

Please sign in to comment.