Skip to content

Commit 7618376

Browse files
authored
[Docs Site] Fix GitHubCode tag conditional (#18044)
1 parent ace85f9 commit 7618376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GitHubCode.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (lines) {
5757
x.includes(`</docs-tag name="${tag}">`),
5858
);
5959
60-
if (!startTag || !endTag) {
60+
if (startTag === -1 || endTag === -1) {
6161
throw new Error(`[GitHubCode] Unable to find a region using tag "${tag}".`);
6262
}
6363

0 commit comments

Comments
 (0)