aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/text-source-element.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-01 22:45:03 -0500
committerGitHub <noreply@github.com>2021-03-01 22:45:03 -0500
commit0e705292cc0c1196901e53670e7b89a70cc1556c (patch)
tree779305d696cfa6b5d3e9296709e0f2d3fd49d76a /ext/js/dom/text-source-element.js
parent0dab38f0a62c0bde4d8c32ec16f9d2a0672b85eb (diff)
Remove zero-width space (#1475)
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 1576bd5e..499ee45d 100644
--- a/ext/js/dom/text-source-element.js
+++ b/ext/js/dom/text-source-element.js
@@ -138,8 +138,8 @@ class TextSourceElement {
break;
}
- // Remove zero-width non-joiner
- content = content.replace(/\u200c/g, '');
+ // Remove zero-width space and zero-width non-joiner
+ content = content.replace(/[\u200b\u200c]/g, '');
return content;
}