Skip to content
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

ImixsAIResultXMLAdapter - escape regex characters #27

Open
rsoika opened this issue Dec 8, 2024 · 0 comments
Open

ImixsAIResultXMLAdapter - escape regex characters #27

rsoika opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request testing
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Dec 8, 2024

We should make use of Matcher.quoteReplacement(). This method escapes all special regex characters in the replacement string, so they are treated as normal characters.
The Matcher.quoteReplacement() method specifically escapes the $ and , which have special meaning in replacement strings:

$ is usually used for group references
. is used for escaping

With this fix, we should solve problems with ugly text strings in xml

@rsoika rsoika added bug Something isn't working enhancement New feature or request labels Dec 8, 2024
@rsoika rsoika added this to the 1.1.1 milestone Dec 8, 2024
rsoika added a commit that referenced this issue Dec 8, 2024
Issue #27
@rsoika rsoika added the testing label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request testing
Projects
None yet
Development

No branches or pull requests

1 participant