Skip to content

Commit

Permalink
fix(replace-links): replace 'replaceAll' with 'replace' to support 14…
Browse files Browse the repository at this point in the history
…th node
  • Loading branch information
Sisha0 committed Nov 24, 2021
1 parent fc4803e commit c74ef33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/e11y/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const markdownIt = require("markdown-it")({
const domain = isDev ? 'http://localhost:3005/ui-playground' : 'https://exadel-inc.github.io/ui-playground';
// if link isn't external, then we replace it
return !link.search(/^https?:\/\//) ? link :
domain + link.replaceAll(/(src)|(README.md)/g, '')
domain + link.replace(/(src)|(README.md)/g, '')
}
}).use(require('markdown-it-replace-link'));

Expand Down

0 comments on commit c74ef33

Please sign in to comment.