From b93713ce15e751e0574493bfa24d13832c8e4bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 20 Jul 2024 12:08:31 +0200 Subject: [PATCH] fix: regex for project format checker --- src/format-checkers/Project.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format-checkers/Project.ts b/src/format-checkers/Project.ts index a648c67..b051197 100644 --- a/src/format-checkers/Project.ts +++ b/src/format-checkers/Project.ts @@ -1,7 +1,7 @@ import { FormatChecker } from '../framework/index.js'; const urlRegexp = String.raw`?`; -const headerRegexp = String.raw`(?:[a-zA-Z0-9_\- ]|(?:)|(?::\w{2,32}:)|(?:\p{Emoji_Presentation}\p{Emoji_Modifier}*))+`; +const headerRegexp = String.raw`(?:[a-zA-Z0-9_\- ]|(?:)|(?::\w{2,32}:)|(?:\p{Emoji_Presentation}\p{Emoji_Modifier}*))`; const projectRegexp = new RegExp( String.raw`^\*\*${headerRegexp}+\*\*\n\n(?:.*\n)+\n(?:(?:${headerRegexp}* )?${urlRegexp}\n)+$`, 'u',