MCPcopy Create free account
hub / github.com/webpack/webpack-cli / normalizeVersions

Function normalizeVersions

test/utils/test-utils.js:237–241  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

235};
236
237const normalizeVersions = (output) =>
238 output.replaceAll(
239 /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gi,
240 "x.x.x",
241 );
242
243const normalizeCwd = (output) =>
244 output

Callers 2

normalizeStdoutFunction · 0.85
normalizeStderrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected