From 510ae91ac0e2beff5255035698988d7bccb5efe0 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 12 Dec 2017 03:18:37 +0300 Subject: [PATCH] don't insert ­ before whitespace --- js/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/localization.js b/js/localization.js index 90165cb3..f3c882fb 100644 --- a/js/localization.js +++ b/js/localization.js @@ -194,5 +194,5 @@ function tDocLoader() { function tWordBreak(text) { // adds soft hyphens every 10 characters to ensure the long words break before breaking the layout return text.length <= 10 ? text : - text.replace(/([\d\w\u007B-\uFFFF]{10}|[\d\w\u007B-\uFFFF]{5,10}[!-/]|((?!\s)\W){10})(?!\b)/g, '$&\u00AD'); + text.replace(/([\d\w\u007B-\uFFFF]{10}|[\d\w\u007B-\uFFFF]{5,10}[!-/]|((?!\s)\W){10})(?!\b|\s)/g, '$&\u00AD'); }