Fixed error when specifying general fields by correcting unwanted characters list#6643
Conversation
|
|
||
| String testString = CitationKeyGenerator.cleanKey(parts[1], preferences.getUnwantedCharacters()); | ||
| if (!testString.equals(parts[1]) || (parts[1].indexOf('&') >= 0)) { | ||
| String unwantedChars = "#{}()~,^&-\"'`ʹ\\"; |
There was a problem hiding this comment.
Please use the unwanted chars from the preferences
There was a problem hiding this comment.
I thought the problem was that the list of unwanted chars from the preferences did not correspond to the unwanted characters for this particular case. I.e. the characters in the log message below are not the same that are stored in preferences. For example, ';' character is fine in this case because it's used to separate fields, but it is on the list of unwanted characters in preferences
There was a problem hiding this comment.
Ah okay, thanks for clarifying this.
There was a problem hiding this comment.
Please also add a changelog entry (the checkstyle issue is not related)
There was a problem hiding this comment.
Okay, I'll do later on tonight
|
Would be nice, if you could also add a short clearifying comment, so the next time someone works on this, one won't reintroduce the bug here, and we don't have to dig into the git history. |
calixtus
left a comment
There was a problem hiding this comment.
Thanks for the follow-up.
Codewise looks good to me.
|
The markdown linter still produces errors: The last three errors are not about your changes. |
|
Sorrry about that, accidentally deleted empty line after section header. Hope this fixed it |
Fixes #6604 by correcting the list of unwanted characters