unicode-aware word breaking, fixes #1124

This commit is contained in:
tophf 2020-11-22 14:53:10 +03:00
parent 2bf30ed16d
commit 00ae843f78

View File

@ -19,7 +19,7 @@ Object.assign(t, {
/((?!\s)\W){10}/,
')',
/(?!\b|\s|$)/,
].map(rx => rx.source || rx).join(''), 'g'),
].map(rx => rx.source || rx).join(''), 'gu'),
HTML(html) {
return typeof html !== 'string'