mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 22:29:06 +00:00
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
import { regEx } from '../../../util/regex';
|
|
|
|
export const keyValueExtractionRegex = regEx(
|
|
/^\s*(?<key>[^\s]+)\s+=\s+"(?<value>[^"]+)"\s*$/,
|
|
);
|
|
|
|
export function checkFileContainsPlugins(content: string): boolean {
|
|
const checkList = ['plugin '];
|
|
return checkList.some((check) => content.includes(check));
|
|
}
|