aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/text-source-element.js
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-02-05 13:09:22 +0100
committerGitHub <noreply@github.com>2024-02-05 12:09:22 +0000
commit376bac7195bf2114da8b234ffa64af9751b4466d (patch)
tree40c04b644342b7161d630024e8ae854ecd36c674 /ext/js/dom/text-source-element.js
parent576dece97e6546aea774d1bac4a05b7854c512a4 (diff)
ignore soft hyphen when scanning text (#640)
* add soft hyphen to ignored characters * add soft hyphen to ignored characters
Diffstat (limited to 'ext/js/dom/text-source-element.js')
-rw-r--r--ext/js/dom/text-source-element.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/dom/text-source-element.js b/ext/js/dom/text-source-element.js
index 8727a4e1..927783d1 100644
--- a/ext/js/dom/text-source-element.js
+++ b/ext/js/dom/text-source-element.js
@@ -246,8 +246,8 @@ export class TextSourceElement {
break;
}
- // Remove zero-width space and zero-width non-joiner
- content = content.replace(/[\u200b\u200c]/g, '');
+ // Remove zero-width space, zero-width non-joiner, soft hyphen
+ content = content.replace(/[\u200b\u200c\u00ad]/g, '');
return content;
}