From 7d3cee3e2145cb2af4659d59e724bb2bbe597bb0 Mon Sep 17 00:00:00 2001 From: Florian Gebhardt Date: Mon, 5 Aug 2024 06:03:36 +0200 Subject: [PATCH] fix: allow mods with whitespace as dependency --- lib/info-schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/info-schema.js b/lib/info-schema.js index 3696057..ad0ae77 100644 --- a/lib/info-schema.js +++ b/lib/info-schema.js @@ -49,7 +49,7 @@ const infoSchema = { "type": "array", "items": { "type": "string", - "pattern": "^(!\\s[A-Za-z0-9-_]+|(([?~]|\\(\\?\\))\\s)?[A-Za-z0-9-_]+(\\s(?:=|[<>]=?)\\s(\\d+\\.){2}\\d+)?)$" + "pattern": "^(!\\s[A-Za-z0-9-_\\s]+?|(([?~]|\\(\\?\\))\\s)?[A-Za-z0-9-_\\s]+?(\\s(?:=|[<>]=?)\\s(\\d+\\.){2}\\d+)?)$" } } }