citeclaw 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/botcite.js +2 -1
package/package.json
CHANGED
package/scripts/botcite.js
CHANGED
|
@@ -1578,7 +1578,7 @@ function isHttpUrl( raw ) {
|
|
|
1578
1578
|
function normalizeArxivId( raw ) {
|
|
1579
1579
|
const value = String( raw || '' ).trim();
|
|
1580
1580
|
const id = value
|
|
1581
|
-
.replace( /^https?:\/\/arxiv\.org\/(?:abs|pdf)\//i, '' )
|
|
1581
|
+
.replace( /^https?:\/\/arxiv\.org\/(?:abs|pdf|html)\//i, '' )
|
|
1582
1582
|
.replace( /\.pdf$/i, '' )
|
|
1583
1583
|
.replace( /^arxiv:/i, '' )
|
|
1584
1584
|
.trim();
|
|
@@ -5012,6 +5012,7 @@ module.exports = {
|
|
|
5012
5012
|
extractBestDoiCandidate,
|
|
5013
5013
|
extractPdfCandidates,
|
|
5014
5014
|
main,
|
|
5015
|
+
normalizeArxivId,
|
|
5015
5016
|
normalizeDoi,
|
|
5016
5017
|
shouldAttemptPdfOcr
|
|
5017
5018
|
};
|