mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:13:40 +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) {
|
||||
const codeRegEx = /<code[^>]*>(.*?)<\/code>/gs;
|
||||
const codeRegEx = /<code[^>]*>([\s\S]*?)<\/code>/gi;
|
||||
const origHtml = html;
|
||||
let match = codeRegEx.exec(origHtml);
|
||||
let placeholders = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user