From d5512e81f414426ecd35084f22181437a7b6d5ef Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 9 Oct 2019 15:24:47 +0200 Subject: [PATCH] Update DiscordPreview.js --- Plugins/ThemeRepo/res/DiscordPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ThemeRepo/res/DiscordPreview.js b/Plugins/ThemeRepo/res/DiscordPreview.js index 348f70d576..bf65d21e7f 100644 --- a/Plugins/ThemeRepo/res/DiscordPreview.js +++ b/Plugins/ThemeRepo/res/DiscordPreview.js @@ -18,7 +18,7 @@ window.onmessage = function (e) { var oldhtml = document.body.innerHTML.split("REPLACE_CLASS_"); var newhtml = oldhtml.shift(); for (let html of oldhtml) { - let reg = /([A-z_]+)(.+)/.exec(html); + let reg = /([A-z0-9_]+)(.+)/.exec(html); newhtml += window.disCN[reg[1]] + reg[2] } document.body.innerHTML = newhtml;