MCPcopy Create free account
hub / github.com/nodejs/node / cleanTime

Function cleanTime

deps/npm/test/fixtures/clean-snapshot.js:34–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 str.replace(/\d{4}-\d{2}-\d{2}T\d{2}[_:]\d{2}[_:]\d{2}[_:.]\d{3}Z/g, '{DATE}')
33
34const cleanTime = str => str.replace(/in [0-9]+m?s\s*$/gm, 'in {TIME}')
35
36const cleanZlib = str => str
37 .replace(/shasum:( *)[0-9a-f]{40}/g, 'shasum:$1{sha}')

Callers 1

install.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected