mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-07 20:46:36 +00:00
2dd26e1b0a
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
11 lines
312 B
TypeScript
11 lines
312 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));
|
|
}
|