From d71a15905495fd34eafb89adb400ce3ae4a68e37 Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 20 May 2020 06:49:07 -0400 Subject: [PATCH] Apply suggestion to src/commands/mdn.ts --- src/commands/mdn.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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('