Pulse/.github/scripts
courtmanr@gmail.com acfe84d9cf Fix issue version parser dropping capitalised V prefixes
normalizeVersion matched /\bv?(\d+\.\d+\.\d+...)/ without the i flag, so a
reported version written as "V6.0.4" never parsed.

The heading regexes in extractPulseVersion already carry the i flag and did
capture "V6.0.4" correctly, but they hand the captured string to
normalizeVersion, which then returned null. That collapsed every extraction
path -- inline scan, heading match, legacy match, and title fallback -- so the
issue was labelled needs-version-info despite stating its version.

Adding the i flag to normalizeVersion fixes all four paths at once. It is a
no-op on the rest of the pattern, since [0-9A-Za-z.-] already spans both cases.

Seen on #1538, which stated "V6.0.4" under the "Pulse version" heading and was
wrongly flagged as missing version metadata.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 12:49:24 +01:00
..
check-demo-reachability.sh Expose demo tailnet identity diagnostics 2026-07-09 20:32:43 +01:00
issue-version-triage.cjs Fix issue version parser dropping capitalised V prefixes 2026-07-26 12:49:24 +01:00
issue-version-triage.test.cjs Fix issue version parser dropping capitalised V prefixes 2026-07-26 12:49:24 +01:00
setup-demo-ssh.sh Make stable patch releases unattended 2026-07-09 20:16:13 +01:00