mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
0c25c0d95f
Eliminate code duplication in gen_string by using a single loop with a first-element flag instead of separate first element processing. The previous structure had ~20 lines of duplicated string literal and expression processing logic. The refactored version uses a unified loop that handles concatenation only for non-first elements, reducing code duplication and improving maintainability. Functionality remains identical - all string interpolation, regex patterns, and heredoc processing work correctly. Co-authored-by: Claude <noreply@anthropic.com>