diff --git a/src/components/GitHubCode.astro b/src/components/GitHubCode.astro index 2f3a56e34898082..47ef6ab0a93a82d 100644 --- a/src/components/GitHubCode.astro +++ b/src/components/GitHubCode.astro @@ -57,7 +57,7 @@ if (lines) { x.includes(``), ); - if (!startTag || !endTag) { + if (startTag === -1 || endTag === -1) { throw new Error(`[GitHubCode] Unable to find a region using tag "${tag}".`); }