summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-10 23:30:34 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-10 23:30:34 +0000
commitbb08b0acd5dbdfba068fad5332ddf51b485fc477 (patch)
treedd36e91e8d40aaa2efa170ab116bcc28466700d2 /js/common.js
parentb888fa10328219d4eb5bec3fd0c69fa859a8c43b (diff)
Improve 'App.getSelectedText()'.
This also drops 'String.prototype.stripTags', which is no longer used.
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/js/common.js b/js/common.js
index 9635ab492..99cf52fa1 100755
--- a/js/common.js
+++ b/js/common.js
@@ -167,10 +167,6 @@ Array.prototype.uniq = function() {
return this.filter((v, i, a) => a.indexOf(v) === i);
};
-String.prototype.stripTags = function() {
- return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, '');
-}
-
/* exported xhr */
const xhr = {
_ts: 0,