From fe0d71e0a85fa4f3df7b238ba903b543667b27a2 Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Fri, 3 May 2024 05:44:44 +0800 Subject: [PATCH] feat(presets): use a more accurate rule for biomeVersions regex manager --- lib/config/presets/internal/regex-managers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/presets/internal/regex-managers.ts b/lib/config/presets/internal/regex-managers.ts index 92419b4d243514..809956e1b1658a 100644 --- a/lib/config/presets/internal/regex-managers.ts +++ b/lib/config/presets/internal/regex-managers.ts @@ -9,9 +9,9 @@ export const presets: Record = { customType: 'regex', datasourceTemplate: 'npm', depNameTemplate: '@biomejs/biome', - fileMatch: ['^biome.json$'], + fileMatch: ['(^|/)biome.json$'], matchStrings: [ - 'https://biomejs.dev/schemas/(?.*)/schema.json', + '"https://biomejs.dev/schemas/(?[^"]+)/schema.json"', ], }, ],