mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 21:59:05 +00:00
12 lines
564 B
TypeScript
12 lines
564 B
TypeScript
import { regEx } from '../../../util/regex';
|
|
|
|
export const newBlockRegEx = /^\s*-\s*((\w+):\s*(.*))$/;
|
|
export const blockLineRegEx = /^\s*((\w+):\s*(\S+))\s*$/;
|
|
export const galaxyDepRegex = /[\w-]+\.[\w-]+/;
|
|
export const dependencyRegex = /^dependencies:/;
|
|
export const galaxyRegEx = regEx(
|
|
/^\s+["']?(?<packageName>[\w.]+)["']?:\s*["']?(?<version>.+?)["']?\s*(\s#.*)?$/,
|
|
);
|
|
export const nameMatchRegex = regEx(
|
|
/(?<source>((git\+)?(?:(git|ssh|https?):\/\/)?(.*@)?(?<hostname>[\w.-]+)(?:(:\d+)?\/|:))(?<depName>[\w./-]+)(?:\.git)?)(,(?<version>[\w.]*))?/,
|
|
);
|