Closed jonathan-g closed 4 years ago
Thank you for the very detailed description @jonathan-g ! I'll look into this but I don't think the main issue is with the regex modifier.
@Siedlerchr , I believe this will be fixed in #6706 (because CitationKeyGenerator
doesn't parse brackets correctly). This is the relevant test case in the PR that fails
I can add a PR for this particular issue anyway, since there should have been an error message in the log and without looking at it in more detail I don't know why there isn't.
@k3KAW8Pnf7mkmdSMPHz27 Is this issue now fixed?
@Siedlerchr no, not yet. I have not published a branch for this issue yet
Summary
the
regex()
operator in the citation key generator is not handling character classes ([<characters>]
) correctly.JabRef Version
JabRef version 5.1--2020-08-30--e023aa0 on Windows 10 10.0 amd64 with Java 14.0.2
Description
When the regular expression in the
regex()
operator includes a character class ([<characters>]
), the operator returns an empty string instead of replacing matched expressions with the replacement string.Steps to reproduce the behavior:
Consider this entry:
and leave the generators for specific types blank.
gilligan:2020:Wickedness.ManagingComplex
,or
gilligan:2020:
(thetitle
portion is empty).When I look at the JabRef event log, it's empty.