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

malformed regex in Logger #8

Closed
fonsecas72 opened this issue Apr 4, 2013 · 1 comment
Closed

malformed regex in Logger #8

fonsecas72 opened this issue Apr 4, 2013 · 1 comment
Assignees
Labels

Comments

@fonsecas72
Copy link
Contributor

This is giving exception when installing (? - not confirmed)
You are not using "-" corretly.

See:
http://stackoverflow.com/questions/5260364/java-regexp-error-is-not-a-valid-character

And maybe you should remove this char too?
I suggest that you take a closer look at the function that i post in Issue #2. This doesn't mean that you have to use that function but maybe its logic.

Logs are certainly important. When users configures this plugin logs are the only thing that they have to check what's working and what's not.

To fix this you may simple do:

.replaceAll("[^A-Za-z0-9\\.\\n\\r\\w\\\\\\/\\!\\$%&:,;\\(\\)=\\?\"'<>\\-\\*]", "&otimes;")

(I think...)

@ghost ghost assigned vralfy Apr 5, 2013
@vralfy
Copy link
Owner

vralfy commented Apr 5, 2013

fixed

@vralfy vralfy closed this as completed Apr 5, 2013
vralfy added a commit that referenced this issue Apr 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants