Skip to content

Commit

Permalink
Frontiers: Fix getDOI() on /journals/* pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Oct 24, 2024
1 parent 30eca8d commit d247318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2023-09-27 07:21:09"
"lastUpdated": "2024-10-24 15:14:44"
}

/*
Expand Down Expand Up @@ -221,7 +221,7 @@ function finalizeItem(item, doi, supplements) {
}

function getDOI(url) {
let m = url.match(/https:\/\/[^/]+\.frontiersin\.org\/articles?\/(10\.\d{4,}\/[^/]+)/);
let m = url.match(/https:\/\/[^/]+\.frontiersin\.org\/(?:journals\/[^/]+\/)?articles?\/(10\.\d{4,}\/[^/]+)/);
return m && m[1];
}

Expand Down

0 comments on commit d247318

Please sign in to comment.