From c84a1fcc06f7d9983326309074b78221c8e00eca Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 3 Oct 2026 11:43:42 +0200 Subject: [PATCH] Semver check: the NUL and TAB in the ls-tree reader are escapes, so the file is text Co-Authored-By: Claude Sonnet 5.5 --- scripts/check-changelog-semver.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-changelog-semver.mjs b/scripts/check-changelog-semver.mjs index a24ba839..80af1226 100644 --- a/scripts/check-changelog-semver.mjs +++ b/scripts/check-changelog-semver.mjs @@ -253,10 +253,10 @@ function firstTagTrackingManaged(tags, dir, cwd) { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], }) - .split("") + .split("\0") .filter((entry) => entry.toLowerCase().endsWith(".dll")); for (const entry of entries) { - const tab = entry.indexOf(" "); + const tab = entry.indexOf("\t"); const id = entry.slice(0, tab).split(" ")[2]; const path = entry.slice(tab + 1); if (!managedBlobs.has(id)) {