Skip to content

Commit

Permalink
refactor(dynamic-import-vars): simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 26, 2024
1 parent 8550c4b commit 99d9746
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 99d9746

Please sign in to comment.