mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
ee2e155f1f
Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
9 lines
249 B
TypeScript
9 lines
249 B
TypeScript
// istanbul ignore next
|
|
export default function cmdSerializer(
|
|
cmd: string | string[]
|
|
): string | string[] {
|
|
if (typeof cmd === 'string') {
|
|
return cmd.replace(/https:\/\/[^@]*@/g, 'https://**redacted**@'); // TODO #12874
|
|
}
|
|
return cmd;
|
|
}
|