headers.ts
This file
Path
apps/web/src/features/code/headers.ts
5 lines · 202 bytes · TypeScript
Last changed by
Merge fix/w12-reviewoscabrielbefore adoption7b8b393
History of this fileTake it
Merge build/1211-code-browseroscabrielbefore adoptiona6808d3
line 1why, one step back1/**Merge fix/w12-reviewoscabrielbefore adoption7b8b393
lines 2–3why, one step back2 * Whether a revision names one commit for good: a whole 40-hex id, where3 * `main` or a tag moves with the next landing.Merge build/1211-code-browseroscabrielbefore adoptiona6808d3
lines 4–5why, one step back4 */5export const isCommitId = (rev: string) => /^[0-9a-f]{40}$/u.test(rev);