Skip to content

Remove dangling spaces wherever found. (#127475) #127607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

Conversation

ankit--sethi
Copy link
Contributor

Backport
This will backport the following commits from main to 9.0:

#127475

* Remove dandling spaces wherever found.

This PR addresses elastic#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ć <[email protected]>

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

Co-authored-by: Slobodan Adamović <[email protected]>

* correctly reference issue

* Update docs/changelog/127475.yaml

---------

Co-authored-by: Slobodan Adamović <[email protected]>

(cherry picked from commit 94854b3)
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.0.2 labels May 1, 2025
@ankit--sethi ankit--sethi added backport v9.0.0 v9.0.2 and removed needs:triage Requires assignment of a team area label v9.0.2 v9.0.0 labels May 1, 2025
@ankit--sethi ankit--sethi enabled auto-merge (squash) May 1, 2025 17:49
@ankit--sethi ankit--sethi disabled auto-merge May 1, 2025 17:50
@ankit--sethi ankit--sethi merged commit 476a31d into elastic:9.0 May 1, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants