Skip to content

Commit

Permalink
fix(embed): broken in IE, fixed #389, fixed #391
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 14, 2018
1 parent 222cfdb commit 45a7464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 45a7464

Please sign in to comment.