-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 011
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
hint| Confidence:medium| Auto-fix: ❌
Multi-pass gsub — Multiple gsub calls on the same string create intermediate strings. Consider a single pass or using a regex alternation.
str.gsub(/foo/, "bar").gsub(/baz/, "qux")Note
See bench results at bench/cat-011/