From 1de357d3a5c4df2dc88116abf30d279d66505381 Mon Sep 17 00:00:00 2001 From: Arun Ananth Velliangiri Date: Thu, 27 Jan 2022 20:12:13 +0530 Subject: [PATCH] Fixed modal window link issue when moduleName has special character --- src/lib/reporter.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/reporter.ts b/src/lib/reporter.ts index 7b438b5..81cd72a 100644 --- a/src/lib/reporter.ts +++ b/src/lib/reporter.ts @@ -103,8 +103,6 @@ Handlebars.registerHelper( (severity: string) => severityMap[severity]?.number ) -Handlebars.registerHelper( - 'nameHandler', - (input) => { - return input.replace('@',"").replace('/',"-") - }) +Handlebars.registerHelper('nameHandler', input => { + return input.replace('@', '').replace('/', '-') +})