From f00f0a1b072aa359f92e3bfe6b88a6668c2f5652 Mon Sep 17 00:00:00 2001 From: Daniel1464 Date: Mon, 29 Jun 2026 12:25:33 -0400 Subject: [PATCH 1/2] initial --- scripts/validate-regions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-regions.ts b/scripts/validate-regions.ts index 49313a8..33bc017 100644 --- a/scripts/validate-regions.ts +++ b/scripts/validate-regions.ts @@ -8,7 +8,7 @@ const DOCS_DIR = join(ROOT, 'src', 'content', 'docs'); const START_RE = /^\s*(?:\/\/|#|--|)?\s*\[(\w+)\]\s*$/; const END_RE = /^\s*(?:\/\/|#|--|)?\s*\[\/(\w+)\]\s*$/; -const CODEBLOCK_RE = /^```\w+\s+(\S+)#(\w+)/; +const CODEBLOCK_RE = /```\w+\s+(\S+)#(\w+)/; const errors: string[] = []; From 1e025202881d74abb2af06ce7c6baf6146550700 Mon Sep 17 00:00:00 2001 From: Sam Freund Date: Sun, 28 Jun 2026 04:39:12 -0700 Subject: [PATCH 2/2] match whitespace --- scripts/validate-regions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-regions.ts b/scripts/validate-regions.ts index 33bc017..eeb1bdf 100644 --- a/scripts/validate-regions.ts +++ b/scripts/validate-regions.ts @@ -8,7 +8,7 @@ const DOCS_DIR = join(ROOT, 'src', 'content', 'docs'); const START_RE = /^\s*(?:\/\/|#|--|)?\s*\[(\w+)\]\s*$/; const END_RE = /^\s*(?:\/\/|#|--|)?\s*\[\/(\w+)\]\s*$/; -const CODEBLOCK_RE = /```\w+\s+(\S+)#(\w+)/; +const CODEBLOCK_RE = /^\s*```\w+\s+(\S+)#(\w+)/; const errors: string[] = [];