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

Function isReservedTarget

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

Source from the content-addressed store, hash-verified

1094const normalizeAttribute = (s: string): string => s.replace(attributeWhitespace, " ")
1095
1096const isReservedTarget = (target: string): boolean => target.length === 3 && target.toLowerCase() === "xml"
1097
1098// Encodings whose declaration could not have been read as ASCII bytes
1099const wideEncodingPattern = /^(?:utf-(?:16|32)(?:be|le)?|(?:iso-10646-)?ucs-[24])$/

Callers 2

processingInstructionMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected