(s)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected