0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/versioning/kubernetes-api/index.ts
Rhys Arkins b6ed33ec01
fix(regex): don’t escape forward slash in fileMatch (#19314)
This cleanup of default `fileMatch` values should be backwards compatible.
2023-03-10 09:34:39 +01:00

23 lines
680 B
TypeScript

import { RegExpVersioningApi } from '../regex';
import type { VersioningApi } from '../types';
export const id = 'kubernetes-api';
export const displayName = 'Kubernetes API';
export const urls = [
'https://kubernetes.io/docs/reference/using-api/#api-versioning',
];
export const supportsRanges = false;
export class KubernetesApiVersioningApi extends RegExpVersioningApi {
private static readonly versionRegex =
'^(?:(?<compatibility>\\S+)/)?v(?<major>\\d+)(?<prerelease>(?:alpha|beta)\\d+)?$';
public constructor() {
super(KubernetesApiVersioningApi.versionRegex);
}
}
export const api: VersioningApi = new KubernetesApiVersioningApi();
export default api;