From d756da6a1c6b09cfe7ef44dd292c5ad811768767 Mon Sep 17 00:00:00 2001 From: HF Date: Tue, 28 Apr 2020 04:49:42 +0200 Subject: [PATCH] strip canvas links to coords only in chat --- src/core/ChatProvider.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/ChatProvider.js b/src/core/ChatProvider.js index 40d23cd..35f8c7b 100644 --- a/src/core/ChatProvider.js +++ b/src/core/ChatProvider.js @@ -30,7 +30,12 @@ class ChatProvider { matches: 3, }, ]; - this.substitutes = []; + this.substitutes = [ + { + regexp: /http[s]?:\/\/(old.)?pixelplanet\.fun\/#/g, + replace: '#', + }, + ]; this.mutedCountries = []; }