-
Notifications
You must be signed in to change notification settings - Fork 234
JCR-5140: Improve support for generating namespace prefixes #255
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
Conversation
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/NamespaceHelper.java
Outdated
Show resolved
Hide resolved
|
| prefix = prefix.replaceAll("[\\/:]+", "-"); | ||
|
|
||
| // strip trailing replacement character | ||
| if (prefix.endsWith("-")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while instead of if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was already taken care of by the regexp, but more clarity and more test coverage do not hurt
|





No description provided.