We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852b613 commit 248c63eCopy full SHA for 248c63e
bin/ucd_to_json.mts
@@ -8,18 +8,16 @@ import { fileURLToPath } from "url";
8
const __filename = fileURLToPath(import.meta.url);
9
const __dirname = path.dirname(__filename);
10
11
-// from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#escape_sequences
+// from https://datatracker.ietf.org/doc/html/rfc8259#section-7
12
const jsonEscape: { [key: string]: string } = {
13
- "0000": "\\0",
14
- "0027": "\\'",
15
"0022": '\\"',
16
"005C": "\\\\",
+ "002F": "\\/",
+ "0008": "\\b",
17
+ "000C": "\\f",
18
"000A": "\\n",
19
"000D": "\\r",
- "000B": "\\v",
20
"0009": "\\t",
21
- "0008": "\\b",
22
- "000c": "\\f",
23
};
24
25
const htmlUnsafe = new Set<String>([
0 commit comments