Mr-KnightCLI opened a new pull request, #1841: URL: https://github.com/apache/commons-lang/pull/1841
## Summary Completes the code-point-aware abbreviation work tracked by [LANG-1770](https://issues.apache.org/jira/browse/LANG-1770). The existing regression test records expected results for supplementary characters, but its assertions were disabled. - Count the source string and replacement marker in Unicode code points. - Interpret abbreviation offsets and widths as code-point counts, converting to UTF-16 indices only when slicing. - Update the Javadoc to describe the code-point behavior. - Enable the expected output assertions for supplementary characters and family sequences. Width is measured in code points; grapheme clusters remain separate code points by design. This preserves existing results for BMP-only strings while preventing abbreviation boundaries from splitting supplementary characters. ## Validation The regression assertions are enabled. I have not run the default Maven build locally; CI will validate this pull request. ## Contribution checklist - [x] Read the contribution guidelines. - [x] Read the ASF Generative Tooling Guidance. - [x] AI tool and scope disclosed: OpenAI Codex generated the implementation and regression-test changes. No independent human review was performed before submission. - [ ] Run the default Maven build (mvn); not run locally. - [x] Add regression assertions for the reported behavior. - [x] Describe what changed, how, and why. - [x] Use meaningful commit subjects with the LANG-1770 key and Generated-by provenance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
