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

moonbitlang / core / 2253

04 Jan 2026 07:30AM UTC coverage: 98.204% (-0.01%) from 98.214%
2253

push

github

bobzhang
feat: add chop_prefix/chop_suffix aliases and optimize strip_* methods

- Add #alias(chop_prefix) to strip_prefix methods
- Add #alias(chop_suffix) to strip_suffix methods
- Optimize strip_prefix/strip_suffix to directly compare at expected
  position instead of using has_prefix/has_suffix which internally use
  find/rev_find to search the entire string

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

7 of 7 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

10609 of 10803 relevant lines covered (98.2%)

223177.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.88
/builtin/string_methods.mbt


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc