Skip to content

Commit 0cdece2

Browse files
committed
Fix http DOIs to https
1 parent df9c87b commit 0cdece2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/normalization/patches.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ export function normalizeDoi(doi) {
326326
else if (/^dx\.doi\.org\/.*/.test(normDoi)) {
327327
normDoi = normDoi.replace(/^dx\.doi\.org\//, 'https://doi.org/');
328328
}
329+
else if (/^http\:\/\/doi.org\/.*/.test(normDoi)) {
330+
normDoi = normDoi.replace(/^http\:\/\/doi.org\//, 'https://doi.org/');
331+
}
329332
return normDoi;
330333
}
331334

0 commit comments

Comments
 (0)