From d4b40b6be4bb6f9e62a208ccc2cafa057761e9c8 Mon Sep 17 00:00:00 2001 From: uctakeoff Date: Sun, 20 Mar 2022 12:54:04 +0900 Subject: [PATCH] fix: unique decision --- src/LineCounterTable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LineCounterTable.ts b/src/LineCounterTable.ts index f2967fc..3f85e1c 100644 --- a/src/LineCounterTable.ts +++ b/src/LineCounterTable.ts @@ -17,8 +17,8 @@ const uniqueLanguageConf = (conf: LanguageConf) => { conf.filenames = [...new Set(conf.filenames)]; conf.extensions = [...new Set(conf.extensions)]; conf.lineComments = [...new Set(conf.lineComments)]; - conf.blockComments = [...new Set(conf.blockComments)]; - conf.blockStrings = [...new Set(conf.blockStrings)]; + conf.blockComments = [...new Map(conf.blockComments)]; + conf.blockStrings = [...new Map(conf.blockStrings)]; // console.log(`2langExtensions : `, conf); }; export class LineCounterTable {