From 00ae843f78e7c946da7d9b3857c2241548df72ae Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 22 Nov 2020 14:53:10 +0300 Subject: [PATCH] unicode-aware word breaking, fixes #1124 --- js/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/localization.js b/js/localization.js index 2effaf17..9baa532e 100644 --- a/js/localization.js +++ b/js/localization.js @@ -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'