JabRef version JabRef 3.8.2 linux 4.8.0-41-generic amd64 Java 1.8.0_121on Ubuntu 16.04 finds all files that match only the year, not the year_author when the
**/[year]_[auth].*\\.[extension]
search pattern is used.
Steps to reproduce:
-
mkdir -p ~/tmp/jabref/pdf; cd ~/tmp/jabref
-
touch pdf/1983_Feringa_509.pdf pdf/1983_Author_123.pdf pdf/1983_unknown.pdf
-
jabref &
-
unpack the attached "bibliography.bib" (from the attached "bibliography.zip", contains just one entry) to the working directory;
-
jabref bibliography.bib
-
Options|Preferences|File: tick "use regular expression search"; set regexp to:
**/[year]_[auth].*\.[extension]
or, alternatively, to:
**/[year]_[auth]_[firstpage].*\\.[extension]
- Edit the entry; go to "General"; remove the file; click "Get fulltext"
=> JabRef finds all files that start with pdb/1983_*, although one would expect that if finds only pdf/1983_Feringa_509.pdf (the versions up to JabRef 2.10 behaved as expected).
Screenshots are attached.
The bug could be reproduced also in the e10e62f 'master' commit using './gradlew run' and Eclipse (Neon), running the JabRefMain class.
bibliography.zip


My file tree configuration:
saulius@koala jabref/ $ pwd
/home/saulius/tmp/jabref
saulius@koala jabref/ $ tree
.
├── bibliography.bib
├── bibliography.bib.sav
├── bibliography.zip
└── pdf
├── 1983_Author_123.pdf
├── 1983_Feringa_509.pdf
├── 1983_unknown.pdf
└── Feringa1983.pdf
JabRef version JabRef 3.8.2 linux 4.8.0-41-generic amd64 Java 1.8.0_121on Ubuntu 16.04 finds all files that match only the year, not the year_author when the
search pattern is used.
Steps to reproduce:
mkdir -p ~/tmp/jabref/pdf; cd ~/tmp/jabref
touch pdf/1983_Feringa_509.pdf pdf/1983_Author_123.pdf pdf/1983_unknown.pdf
jabref &
unpack the attached "bibliography.bib" (from the attached "bibliography.zip", contains just one entry) to the working directory;
jabref bibliography.bib
Options|Preferences|File: tick "use regular expression search"; set regexp to:
**/[year]_[auth].*\.[extension]
or, alternatively, to:
=> JabRef finds all files that start with pdb/1983_*, although one would expect that if finds only pdf/1983_Feringa_509.pdf (the versions up to JabRef 2.10 behaved as expected).
Screenshots are attached.
The bug could be reproduced also in the e10e62f 'master' commit using './gradlew run' and Eclipse (Neon), running the JabRefMain class.
bibliography.zip


My file tree configuration: