Skip to content

Commit 5fcc686

Browse files
authored
Fix ACM fetcher import of entries (#4019)
Removed `&` sign from ID pattern
1 parent b8ea55b commit 5fcc686

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
1818
We fixed an issue where the export to clipboard functionality could not be invoked [#3994](https://github.com/JabRef/jabref/issues/3994)
1919
We fixed an issue with the migration of invalid Look and Feels [#3995, comment](https://github.com/JabRef/jabref/issues/3995#issuecomment-385649448)
2020
We fixed an issue where JabRef would no longer start, when the option "Override default font settings" was activated [#3986](https://github.com/JabRef/jabref/issues/3986)
21+
We fixed an issue where fetched entries from the ACM fetcher could not be imported. [#4018](https://github.com/JabRef/jabref/issues/4018)
22+
2123
### Removed
2224
We removed the GTK Look and Feel from the Options, as it leads to freezes in JabRef on MacOSX and Linux [#3995](https://github.com/JabRef/jabref/issues/3995)
2325
The GTK Look and Feel is now replaced with the "Nimbus" style as default.

src/main/java/org/jabref/gui/importer/fetcher/ACMPortalFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class ACMPortalFetcher implements PreviewEntryFetcher {
7878

7979
private static final Pattern FULL_CITATION_PATTERN = Pattern.compile("<a href=\"(citation.cfm.*)\" target.*");
8080

81-
private static final Pattern ID_PATTERN = Pattern.compile("citation.cfm\\?id=(\\d+)&.*");
81+
private static final Pattern ID_PATTERN = Pattern.compile("citation.cfm\\?id=(\\d+).*");
8282

8383
// Patterns used to extract information for the preview:
8484
private static final Pattern TITLE_PATTERN = Pattern.compile("<a href=.*?\">([^<]*)</a>");

0 commit comments

Comments
 (0)