Skip to content

Go: .MatchString no longer misses on the leading word boundary (Part of #4108) - #7867

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261106T0521Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261106T0521Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4108 (slice 23). Go regex_execution was \b(regexp\.Compile|regexp\.MustCompile|\.MatchString)\b: the leading \b before .MatchString needs a word char before the dot, so regexp.MustCompile(x).MatchString(s) and pats[0].MatchString(s) missed. Now \b(?:regexp\.Compile|regexp\.MustCompile)\b|\.MatchString\b.

Class / Sibling gaps

Class: a rule alternative whose first character is non-word (., -, !) sitting behind a shared leading \b, which can only match after a word char. Members: go .MatchString (fixed here); java .matches( already fixed in #7864 (java.py:556 verified, no change needed); dockerfile dash flags fixed in #7862. Sibling gaps: the class is not swept beyond go/java in this slice; other languages' \b(...|\.x) or \b(...|-x) alternations remain to be enumerated (no issues filed).

Files: go.py, test_go_matchstring_boundary_4108.py (2 hand-written). Golden masters: crucible_check.py both legs PASS with no diff, so no re-bless.

Remaining slices: sweep of the class across the other language files.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 05:55
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit d338849 into main Nov 6, 2026
120 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4108-20261106T0521Z branch November 6, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant