Skip to content

Commit 7d3cee3

Browse files
authored
fix: allow mods with whitespace as dependency
1 parent c839a9e commit 7d3cee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/info-schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const infoSchema = {
4949
"type": "array",
5050
"items": {
5151
"type": "string",
52-
"pattern": "^(!\\s[A-Za-z0-9-_]+|(([?~]|\\(\\?\\))\\s)?[A-Za-z0-9-_]+(\\s(?:=|[<>]=?)\\s(\\d+\\.){2}\\d+)?)$"
52+
"pattern": "^(!\\s[A-Za-z0-9-_\\s]+?|(([?~]|\\(\\?\\))\\s)?[A-Za-z0-9-_\\s]+?(\\s(?:=|[<>]=?)\\s(\\d+\\.){2}\\d+)?)$"
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)