• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 30169220365 / 12
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 25 Jul 2026 06:16PM UTC
Files 167
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jul 2026 06:14PM UTC coverage: 95.397%. Remained the same
30169220365.12

Pull #2815

github

ericproulx
Fix line-anchored regexes matching per line instead of whole string

Ruby's ^ and $ anchor to lines, not string boundaries, so two
whole-string checks misfired on multi-line input:

- Types::Json#parse used /^\s*$/ as its blank check, so any payload
  containing a blank line ("[1,2]\n\n", pretty-printed JSON with an
  empty line) was treated as blank and silently coerced to nil.
  Replaced with blank?, which anchors correctly and drops the regex.
- Router::Pattern::Path#valid_part? used /^\S/, accepting a part that
  starts with whitespace as long as a later line starts without it.
  Anchored with \A.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #2815: Fix line-anchored regexes matching per line instead of whole string

1111 of 1228 branches covered (90.47%)

Branch coverage included in aggregate %.

3697 of 3812 relevant lines covered (96.98%)

948.91 hits per line

Source Files on job run-4.0-gemfiles/rack_3_0.gemfile - 30169220365.12
  • Tree
  • List 167
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30169220365
  • 7c534f9b on github
  • Prev Job for on fix-line-anchored-regexes (#30166451855.3)
  • Next Job for on fix-line-anchored-regexes (#30169244766.18)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc