summaryrefslogtreecommitdiff
path: root/docs/_static
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-11 01:23:55 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-11 01:23:55 +0300
commit4907e59a7ebd1318f2b3cffa540b10ae2279d84f (patch)
tree2421c92481cb5151486bae41d548d38bfe039c35 /docs/_static
parent6325cc9912f0ff4f73e582891398db9ed4f1392f (diff)
downloadvyos-documentation-4907e59a7ebd1318f2b3cffa540b10ae2279d84f.tar.gz
vyos-documentation-4907e59a7ebd1318f2b3cffa540b10ae2279d84f.zip
ci(ai-validation): fix control-char guard — use grep -z, exclude NUL
Previous form `tr -d '\0\n\r' | grep -Pq [\x00-\x1F\x7F]` stripped the very chars (LF, CR) it was meant to catch before the grep ran, so a path containing newlines or carriage returns slipped through. `grep -z` keeps NUL as the record delimiter (legitimate separator from git diff -z) and the pattern excludes 0x00 while catching every other control byte 0x01-0x1F + 0x7F. LF/CR inside any path now correctly fail the guard. Surfaced by Copilot on #1969; applied to all three branch copies (rolling/circinus/sagitta) so the workflow stays in sync. 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/_static')
0 files changed, 0 insertions, 0 deletions