Commit 8bf2f47
committed
fix(build-x): portable token-boundary regex in hallucination-check.sh
The initial manifest-resolution regex used a complex character class
(['"\[ ] / ['"\] =<>~,]) that parses subtly differently across
grep flavors — under ugrep (the grep on some Linux distros) it
failed to match 'requests' in dependencies = ["requests"] even
though GNU grep / BSD grep both matched it.
Replace with the portable complement-of-name-chars pattern:
(^|[^a-zA-Z0-9_-])${name}([^a-zA-Z0-9_-]|$)
Applied to both check_python and check_rust. Equivalent in
intent — the package name is a whole token, preceded and followed
by a non-name char (or line boundary). Conservative by design
(prefers false-positive avoidance over false-negative pickup).
Caught by the cycle smoke (block §F1/§F2: 'requests' was being
flagged as unresolved on a fixture where pyproject.toml clearly
declared it). Item F follow-up.1 parent 2819653 commit 8bf2f47
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| |||
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
225 | | - | |
226 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
| |||
0 commit comments