diff --git a/src/commands/mdn.ts b/src/commands/mdn.ts index 31c55ab..95e2a54 100644 --- a/src/commands/mdn.ts +++ b/src/commands/mdn.ts @@ -33,10 +33,8 @@ export default class MDN extends Command { // Do not touch to the next block of code. Don't even look at it. your brain could stop working data.Summary = data.Summary.replace(//g, ''); data.Summary = data.Summary.replace(/<\/strong><\/code>/g, ''); - data.Summary = data.Summary.replace(//g, '`'); - data.Summary = data.Summary.replace(/<\/code>/g, '`'); - data.Summary = data.Summary.replace(//g, '**'); - data.Summary = data.Summary.replace(/<\/strong>/g, '**'); + data.Summary = data.Summary.replace(/|<\/code>/g, '`'); + data.Summary = data.Summary.replace(`/|<\/strong>/g, '**');` const url = data.Summary.match(//); if (url !== null) { url[0] = url[0].replace('