feat(presets): use a more accurate rule for biomeVersions regex manager (#28806)

This commit is contained in:
Hikari Hayashi 2024-05-03 12:57:27 +08:00 committed by GitHub
parent 5dab770512
commit dbd9da01b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,9 +9,9 @@ export const presets: Record<string, Preset> = {
customType: 'regex',
datasourceTemplate: 'npm',
depNameTemplate: '@biomejs/biome',
fileMatch: ['^biome.json$'],
fileMatch: ['(^|/)biome.json$'],
matchStrings: [
'https://biomejs.dev/schemas/(?<currentValue>.*)/schema.json',
'"https://biomejs.dev/schemas/(?<currentValue>[^"]+)/schema.json"',
],
},
],