Skip to content

Commit 10b2725

Browse files
committed
Treat U+30A0 & U+30FB in Kataka Block as CJK
1 parent 457dd80 commit 10b2725

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/language-markdown/constants.evaluate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { all as getCjkCharset } from "cjk-regex";
2-
import { Charset } from "regexp-util";
2+
import { Charset, charset } from "regexp-util";
33
import unicodeRegex from "unicode-regex";
44

55
const cjkCharset = new Charset(
@@ -15,6 +15,8 @@ const cjkCharset = new Charset(
1515
"Nonspacing_Mark",
1616
],
1717
}),
18+
// Firefox treats them as CJK
19+
charset("゠", "・"),
1820
);
1921
const variationSelectorsCharset = unicodeRegex({
2022
Block: ["Variation_Selectors", "Variation_Selectors_Supplement"],

tests/format/markdown/splitCjkText/__snapshots__/format.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ English
358358
り)!」「禁則(きんそく)処理(しょり)!」「禁則(きんそく)処理(しょり)!」
359359
「禁則(きんそく)処理(しょり)!」
360360
361-
中点中点
361+
中点中点
362362
363363
禁則処理にわざと違反した文章のテストを今から行います。準備はいいでしょうか?レ
364364
ディ、ゴー!

0 commit comments

Comments
 (0)