Skip to content
go-libfossil Artifact [1989142a35]
Login

Artifact [1989142a35]

Artifact 1989142a352d33c90260110d0f1e2ef2121787146bb420b62faf66c2f3e56187:


{{- /* Shortens an artifact name (40 or 64 hex digits) to 12 digits and an ellipsis; returns anything else unchanged. */ -}}
{{- $s := . -}}
{{- if and (ge (len $s) 40) (findRE `^[0-9a-f]+$` $s) -}}
  {{- $s = printf "%s…" (substr $s 0 12) -}}
{{- end -}}
{{- return $s -}}