FIX: IE syntax error in regular expression

This commit is contained in:
Vinoth Kannan 2017-12-18 23:03:35 +05:30
parent 8e55400392
commit 70b6030c74

View File

@ -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 = [];