Skip to content
Snippets Groups Projects
Commit 0922d2e6 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

fix: don't try to show animation for + character

Closes #319
parent 94701a74
Branches
Tags
1 merge request!120feat: fehlendes Pinyin für zwei Vokabeln hinzugefügt
......@@ -6,5 +6,5 @@
* in the Hanzi fields.
*/
export function isMaybeHanzi (candidate: string): boolean {
return /^[^\s\p{Ps}\p{Pe}\p{Po}\p{Pd}\p{Ll}\p{Lu}]+$/u.test(candidate)
return /^[^\s\p{Ps}\p{Pe}\p{Po}\p{Pd}\p{Ll}\p{Lu}\p{Sm}]+$/u.test(candidate)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment