MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / formatDateBadge

Function formatDateBadge

deployments/desktop/static/app.js:861–866  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

859}
860
861function formatDateBadge(value) {
862 const text = String(value || "").trim();
863 if (!text) return "";
864 const dateMatch = text.match(/^(\d{4}-\d{2}-\d{2})/);
865 return dateMatch ? dateMatch[1] : text;
866}
867
868function formatSourceLabel(value) {
869 const text = String(value || "").trim();

Callers 1

renderPushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected