MCPcopy
hub / github.com/github/awesome-copilot / normalizeText

Function normalizeText

extensions/backlog-swipe-triage/extension.mjs:71–73  ·  view source on GitHub ↗
(value, fallback = "")

Source from the content-addressed store, hash-verified

69}
70
71function normalizeText(value, fallback = "") {
72 return typeof value === "string" ? value.trim() : fallback;
73}
74
75function escapeHtml(value) {
76 return normalizeText(value).replace(/[&<>"']/g, (char) => {

Callers 15

escapeHtmlFunction · 0.70
normalizeStringArrayFunction · 0.70
normalizeFiltersFunction · 0.70
getIssueLabelsFunction · 0.70
getIssueAssigneesFunction · 0.70
issueMatchesFiltersFunction · 0.70
sortIssuesFunction · 0.70
normalizeItemFunction · 0.70
setBoardItemsFunction · 0.70
applyBoardDecisionFunction · 0.70
buildItemWorkStatusFunction · 0.70
buildBoardStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected