MCPcopy Create free account
hub / github.com/angular/dev-infra / buildDateStamp

Function buildDateStamp

ng-dev/release/notes/context.ts:254–260  ·  view source on GitHub ↗
(date = new Date())

Source from the content-addressed store, hash-verified

252
253/** Sanitizes a commit hash or shortHash for safe interpolation into Markdown links. */
254function sanitizeCommitHash(hash: string | undefined): string {
255 return (hash ?? '').replace(/[\[\]()<>\\\r\n]/g, '');
256}
257
258/**
259 * Builds a date stamp for stamping in release notes.
260 *
261 * Uses the current date, or a provided date in the format of YYYY-MM-DD, i.e. 1970-11-05.
262 */
263export function buildDateStamp(date = new Date()) {

Callers 1

RenderContextClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected