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
123456/** * Whether a revision names one commit for good: a whole 40-hex id, where * `main` or a tag moves with the next landing. */export const isCommitId = (rev: string) => /^[0-9a-f]{40}$/u.test(rev);