Skip to content

Commit

Permalink
fix(bmj): fixed non escaped dots
Browse files Browse the repository at this point in the history
  • Loading branch information
oxypomme committed Nov 20, 2024
1 parent 9489198 commit f527b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmj/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = new Parser(function analyseEC(parsedUrl, ec) {

const doiPrefix = '10.1136/';

if ((match = /^\/content\/([a-z0-9]+)\/([0-9]+)\/([a-z0-9-]+).full.pdf$/i.exec(path)) !== null) {
if ((match = /^\/content\/([a-z0-9]+)\/([0-9]+)\/([a-z0-9-]+)\.full\.pdf$/i.exec(path)) !== null) {
// /content/bmj/379/bmj-2022-071517.full.pdf
result.rtype = 'ARTICLE';
result.mime = 'PDF';
Expand Down

0 comments on commit f527b84

Please sign in to comment.