From 45a7464d23bcb98d852e49d280222d3bf2935c95 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Wed, 14 Feb 2018 13:16:38 +0800 Subject: [PATCH] fix(embed): broken in IE, fixed #389, fixed #391 --- src/core/render/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/render/embed.js b/src/core/render/embed.js index cdb44b20e..8ddc1248a 100644 --- a/src/core/render/embed.js +++ b/src/core/render/embed.js @@ -51,7 +51,7 @@ export function prerenderEmbed ({ compiler, raw = '', fetch }, done) { tokens.forEach((token, index) => { if (token.type === 'paragraph') { token.text = token.text.replace( - new RegExp(linkRE, 'g'), + new RegExp(linkRE.source, 'g'), (src, filename, href, title) => { const embed = compiler.compileEmbed(href, title)