0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/manager/flux/common.ts
2023-09-23 08:00:26 +00:00

11 lines
362 B
TypeScript

import { regEx } from '../../../util/regex';
export const systemManifestFileNameRegex = '(?:^|/)gotk-components\\.ya?ml$';
export const systemManifestHeaderRegex =
'#\\s*Flux\\s+Version:\\s*(\\S+)(?:\\s*#\\s*Components:\\s*([A-Za-z,-]+))?';
export function isSystemManifest(file: string): boolean {
return regEx(systemManifestFileNameRegex).test(file);
}