Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Fix JSONPath replace failed with line terminator #3810

Merged

Conversation

Young-Zen
Copy link
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Describe the new behavior from this PR, and why it's needed
Issue #3804
This is because by default, the regular expression . matches any character except the line terminator: https://github.com/openjdk/jdk/blob/2edf9c3f1e968779c6e92b3e25d780db68ace5cc/src/java.base/share/classes/java/util/regex/Pattern.java#L890

Alternatives considered

Describe alternative implementation you have considered

@dpozinen
Copy link

this does indeed seems to cover our cases, can we release this as a hotfix/patch? @v1r3n

@v1r3n v1r3n merged commit 8981878 into Netflix:main Nov 3, 2023
2 checks passed
Young-Zen added a commit to Young-Zen/netflix-conductor that referenced this pull request Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants