MCPcopy Create free account
hub / github.com/objectivehtml/FlipClock / unicodeEscape

Method unicodeEscape

src/helpers/parser.js:54–59  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

52 ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu")
53 : null;
54 function unicodeEscape(s) {
55 if (nonPrintable) {
56 return s.replace(nonPrintable, ch => "\\u{" + hex(ch) + "}");
57 }
58 return s;
59 }
60
61 function literalEscape(s) {
62 return unicodeEscape(s

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected