mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 00:56:26 +00:00
dca3418bbd
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/ BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
12 lines
390 B
TypeScript
12 lines
390 B
TypeScript
const re = /!reference \[(.*?)\]/g;
|
|
|
|
/**
|
|
* Replaces GitLab reference tags before parsing, because our yaml parser cannot process them anyway.
|
|
* @param content pipeline yaml
|
|
* @returns replaced pipeline content
|
|
* https://docs.gitlab.com/ee/ci/yaml/#reference-tags
|
|
*/
|
|
export function replaceReferenceTags(content: string): string {
|
|
const res = content.replace(re, '');
|
|
return res;
|
|
}
|