diff --git a/deno.json b/deno.json index 81fd1bb..43ca539 100644 --- a/deno.json +++ b/deno.json @@ -6,7 +6,7 @@ "customType": "regex", "fileMatch": ["^import_map.json$", "^deno.jsonc?$"], "matchStrings": [ - "\".+?\"\\s*:\\s*\"(?https://deno.land/.+?)@v?(?\\d+?\\.\\d+?\\.\\d+?).*?\"" + "([\"']).+?\\1\\s*:\\s*([\"'])(?https://deno.land/.+?)@v?(?\\d+?\\.\\d+?\\.\\d+?).*?\\2" ], "datasourceTemplate": "deno" }, @@ -14,8 +14,8 @@ "customType": "regex", "fileMatch": ["^import_map.json$", "^deno.jsonc?$"], "matchStrings": [ - "['\"].+?['\"]\\s*:\\s*['\"]https://esm.sh/(?.+?)@v?(?\\d+?(?:\\.\\d+?){0,2}).*?['\"]", - "['\"].+?['\"]\\s*:\\s*['\"]npm:(?.+?)@(?\\d+?(?:\\.\\d+?){0,2}).*?['\"]" + "([\"']).+?\\1\\s*:\\s*([\"'])https://esm.sh/(?.+?)@v?(?\\d+?(?:\\.\\d+?){0,2}).*?\\2", + "([\"']).+?\\1\\s*:\\s*([\"'])npm:(?.+?)@(?\\d+?(?:\\.\\d+?){0,2}).*?\\2" ], "datasourceTemplate": "npm" }, @@ -23,7 +23,7 @@ "customType": "regex", "fileMatch": ["\\.[jt]sx?$"], "matchStrings": [ - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"](?https://deno.land/.+?)@v?(?\\d+?\\.\\d+?\\.\\d+?).*?['\"]" + "(?:im|ex)port(?:.|\\s)+?from\\s*([\"'])(?https://deno.land/.+?)@v?(?\\d+?\\.\\d+?\\.\\d+?).*?\\1" ], "datasourceTemplate": "deno" }, @@ -31,31 +31,26 @@ "customType": "regex", "fileMatch": ["\\.[jt]sx?$"], "matchStrings": [ - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"]https://esm.sh/(?.+?)@v?(?\\d+?(?:\\.\\d+?){0,2}).*?['\"]", - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"]npm:(?.+?)@(?\\d+?(?:\\.\\d+?){0,2}).*?['\"]" + "(?:im|ex)port(?:.|\\s)+?from\\s*([\"'])https://esm.sh/(?.+?)@v?(?\\d+?(?:\\.\\d+?){0,2}).*?\\1", + "(?:im|ex)port(?:.|\\s)+?from\\s*([\"'])npm:(?.+?)@(?\\d+?(?:\\.\\d+?){0,2}).*?\\1" ], "datasourceTemplate": "npm" }, { "customType": "regex", - "fileMatch": [ - "^import_map.json$", - "^deno.jsonc?$" - ], + "fileMatch": ["^import_map.json$", "^deno.jsonc?$"], "matchStrings": [ - "\".+?\"\\s*:\\s*['\"]https://pax.deno.dev/(?.+?/.+?)@(?.+?)[/'\"]", - "\".+?\"\\s*:\\s*['\"]https://raw.githubusercontent.com/(?.+?/.+?)/(?.+?)[/'\"]" + "([\"']).+?\\1\\s*:\\s*([\"'])https://pax.deno.dev/(?.+?/.+?)@(?.+?)(?:/.+)*\\2", + "([\"']).+?\\1\\s*:\\s*([\"'])https://raw.githubusercontent.com/(?.+?/.+?)/(?.+?)(?:/.+)*\\2" ], "datasourceTemplate": "github-tags" }, { "customType": "regex", - "fileMatch": [ - "\\.[jt]sx?$" - ], + "fileMatch": ["\\.[jt]sx?$"], "matchStrings": [ - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"]https://pax.deno.dev/(?.+?/.+?)@(?.+?)[/'\"]", - "(?:im|ex)port(?:.|\\s)+?from\\s*['\"]https://raw.githubusercontent.com/(?.+?/.+?)/(?.+?)[/'\"]" + "(?:im|ex)port(?:.|\\s)+?from\\s*([\"'])https://pax.deno.dev/(?.+?/.+?)@(?.+?)(?:/.+)*\\1", + "(?:im|ex)port(?:.|\\s)+?from\\s*([\"'])https://raw.githubusercontent.com/(?.+?/.+?)/(?.+?)(?:/.+)*\\1" ], "datasourceTemplate": "github-tags" }