diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-10 23:30:34 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-10 23:30:34 +0000 |
| commit | bb08b0acd5dbdfba068fad5332ddf51b485fc477 (patch) | |
| tree | dd36e91e8d40aaa2efa170ab116bcc28466700d2 /js/common.js | |
| parent | b888fa10328219d4eb5bec3fd0c69fa859a8c43b (diff) | |
Improve 'App.getSelectedText()'.
This also drops 'String.prototype.stripTags', which is no longer used.
Diffstat (limited to 'js/common.js')
| -rwxr-xr-x | js/common.js | 4 |
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, |