elasticsearch/libs/x-content
Ankit Sethi 94854b3a3f
Remove dangling spaces wherever found. (#127475)
* Remove dandling spaces wherever found.

This PR addresses #117067 , a report about unexpected spaces breaking message parsers built by customers. I used the regex `(\. \")(?![A-Z(a-z_0-9-;<%\/\.+ \t\n]+)` to detect such instances and clean up. In one case, a minor code improvement helps add optional spaces as necessary for a multi-sentence error message.

* fix test

* Update docs/changelog/127475.yaml

* correct logic

* fix test

* fix tests

* fix tests

* fix tests

* Update docs/changelog/127475.yaml

* Update x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/action/TransportGetInferenceModelAction.java

Co-authored-by: Slobodan Adamović <slobodanadamovic@users.noreply.github.com>

* Update libs/x-content/src/main/java/org/elasticsearch/xcontent/ObjectParser.java

Co-authored-by: Slobodan Adamović <slobodanadamovic@users.noreply.github.com>

* correctly reference issue

* Update docs/changelog/127475.yaml

---------

Co-authored-by: Slobodan Adamović <slobodanadamovic@users.noreply.github.com>
2025-05-01 10:33:54 -05:00
..
impl Workaround max name limit imposed by Jackson 2.17 (#126806) 2025-04-15 11:40:27 -07:00
src Remove dangling spaces wherever found. (#127475) 2025-05-01 10:33:54 -05:00
build.gradle Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00