Skip to content

Commit

Permalink
Updated Unicode data (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Aug 19, 2023
1 parent 48f3914 commit 1c02b39
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 411 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/node": "^12.20.13",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"@unicode/unicode-15.0.0": "^1.3.0",
"@unicode/unicode-15.0.0": "^1.4.2",
"chai": "^4.3.4",
"dependency-cruiser": "^12.3.0",
"dts-bundle": "^0.7.3",
Expand Down
6 changes: 3 additions & 3 deletions scripts/create-case-folding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ export const ${variablePrefix}CaseVarying: CharSet = CharSet.empty(${maxCharacte
*
* If the given character do not have case variations, it will not be part of this map.
*/
export const ${variablePrefix}CaseFolding: Readonly<Record<number, readonly number[]>> = JSON.parse(${JSON.stringify(
JSON.stringify(map)
)});
export const ${variablePrefix}CaseFolding: Readonly<Record<number, readonly number[]>> = JSON.parse('${JSON.stringify(
map
)}');
`;

fs.writeFileSync(path.join(__dirname, "../src/js", filename), code, "utf-8");
Expand Down
2 changes: 1 addition & 1 deletion scripts/util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CharRange } from "../src/char-set";

export function printRanges(ranges: Iterable<CharRange>): string {
return `JSON.parse(${JSON.stringify(JSON.stringify([...ranges]))})`;
return `JSON.parse('${JSON.stringify([...ranges])}')`;
}

export function logDurations(durations: number[], label?: string): void {
Expand Down
106 changes: 53 additions & 53 deletions src/js/unicode/binary-property-data.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/unicode/case-folding.ts

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions src/js/unicode/general-category-data.ts

Large diffs are not rendered by default.

304 changes: 152 additions & 152 deletions src/js/unicode/script-data.ts

Large diffs are not rendered by default.

304 changes: 152 additions & 152 deletions src/js/unicode/script-extensions-data.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/utf16-case-folding.ts

Large diffs are not rendered by default.

0 comments on commit 1c02b39

Please sign in to comment.