Skip to content

Commit 2441408

Browse files
authored
feat(allow-modules): include virtual: in the modules pattern
1 parent 067b9bf commit 2441408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/get-allow-modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports.schema = {
4949
type: "array",
5050
items: {
5151
type: "string",
52-
pattern: "^(?:@[a-zA-Z0-9_\\-.]+/)?[a-zA-Z0-9_\\-.]+$",
52+
pattern: "^(?:virtual:)?(?:@[a-zA-Z0-9_\\-.]+/)?[a-zA-Z0-9_\\-.]+$",
5353
},
5454
uniqueItems: true,
5555
}

0 commit comments

Comments
 (0)