Update DiscordPreview.js

This commit is contained in:
Mirco Wittrien 2019-10-09 15:24:47 +02:00
parent 8ccee43fd1
commit d5512e81f4
1 changed files with 1 additions and 1 deletions

View File

@ -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;