mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: IE syntax error in regular expression
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user