MCPcopy Create free account
hub / github.com/Effect-TS/effect / normalizeAttribute

Function normalizeAttribute

packages/effect/src/encoding/Xml.ts:1094–1094  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1092
1093// Normalizes the line endings and whitespace of a literal attribute value part
1094const normalizeAttribute = (s: string): string => s.replace(attributeWhitespace, " ")
1095
1096const isReservedTarget = (target: string): boolean => target.length === 3 && target.toLowerCase() === "xml"
1097

Callers 2

decodeTextMethod · 0.85
attributeValueMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected