mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:05:48 +08:00
FIX: IE syntax error in regular expression
This commit is contained in:
parent
8e55400392
commit
70b6030c74
|
@ -312,7 +312,7 @@ class Element {
|
||||||
}
|
}
|
||||||
|
|
||||||
function putPlaceholders(html) {
|
function putPlaceholders(html) {
|
||||||
const codeRegEx = /<code[^>]*>(.*?)<\/code>/gs;
|
const codeRegEx = /<code[^>]*>([\s\S]*?)<\/code>/gi;
|
||||||
const origHtml = html;
|
const origHtml = html;
|
||||||
let match = codeRegEx.exec(origHtml);
|
let match = codeRegEx.exec(origHtml);
|
||||||
let placeholders = [];
|
let placeholders = [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user