mirror of https://github.com/renovatebot/renovate
11 lines
313 B
TypeScript
11 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));
|
|
}
|