Skip to content

Commit 2fd090e

Browse files
committed
test(parseText): update test
1 parent 8426a0b commit 2fd090e

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

src/graphic/helper/parseText.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,8 @@ function isWordBreakChar(ch: string) {
699699
}
700700

701701
// Create a dictionary of characters that shouldn't start a new line
702-
// Group ASCII, fullwidth and CJK punctuation together
703702
const prohibitedLineStartChars =
704-
'.,!?:;)}]"\'。,、:;!?)]}》」』“”‘’)〕》〉】…';
703+
'.,!?:;)}]"\'。,、:;!?)]}》」』’)〕》〉】…';
705704

706705
const prohibitedLineStartCharMap = reduce(prohibitedLineStartChars.split(''), function (obj, ch) {
707706
obj[ch] = true;

0 commit comments

Comments
 (0)