From 701c160ec19578a59bdd17c1545ce026a42dc215 Mon Sep 17 00:00:00 2001 From: Allan Bowe <4420615+allanbowe@users.noreply.github.com> Date: Tue, 10 Jan 2023 10:37:32 +0000 Subject: [PATCH] fix: support single asterisk comment headers --- src/utils/getHeaderLinesCount.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/getHeaderLinesCount.ts b/src/utils/getHeaderLinesCount.ts index fcb9f6d..5391945 100644 --- a/src/utils/getHeaderLinesCount.ts +++ b/src/utils/getHeaderLinesCount.ts @@ -7,12 +7,12 @@ import { splitText } from './splitText' export const getHeaderLinesCount = (text: string, config: LintConfig) => { let count = 0 - if (text.trimStart().startsWith('/**')) { + if (text.trimStart().startsWith('/*')) { const lines = splitText(text, config) for (const line of lines) { count++ - if (line.match(/\*\*\//)) { + if (line.match(/\*\//)) { break } }