diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-02-05 13:09:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 12:09:22 +0000 |
commit | 376bac7195bf2114da8b234ffa64af9751b4466d (patch) | |
tree | 40c04b644342b7161d630024e8ae854ecd36c674 /ext/js/dom/dom-text-scanner.js | |
parent | 576dece97e6546aea774d1bac4a05b7854c512a4 (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/dom-text-scanner.js')
-rw-r--r-- | ext/js/dom/dom-text-scanner.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/dom/dom-text-scanner.js b/ext/js/dom/dom-text-scanner.js index 5caa32f7..f1dc3661 100644 --- a/ext/js/dom/dom-text-scanner.js +++ b/ext/js/dom/dom-text-scanner.js @@ -472,6 +472,7 @@ export class DOMTextScanner { return preserveNewlines ? 3 : 1; case 0x200b: // Zero-width space case 0x200c: // Zero-width non-joiner + case 0x00ad: // Soft hyphen return 0; default: // Other return 2; |