@a_kawashiro/jendeley
Advanced tools
Comparing version 2.0.7 to 2.0.9
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MAX_ENTRIES_IN_GET_API = exports.JENDELEY_DIR = exports.JENDELEY_VERSION = exports.ARXIV_API_URL = exports.ID_TYPE_URL = exports.ID_TYPE_META = exports.ID_TYPE_BOOK = exports.ID_TYPE_PATH = exports.ID_TYPE_ISBN = exports.ID_TYPE_DOI = exports.ID_TYPE_ARXIV = exports.ENTRY_DATA_FROM_ARXIV = exports.ENTRY_TITLE = exports.ENTRY_TEXT = exports.ENTRY_COMMENTS = exports.ENTRY_TAGS = exports.ENTRY_URL = exports.ENTRY_PATH = exports.ENTRY_AUTHORS = exports.ENTRY_ID_TYPE = exports.DB_META_KEY = exports.JENDELEY_NO_ID = exports.JENDELEY_NO_TRACK = exports.TITLE_EDITABLE_ID_TYPES = exports.AUTHORES_EDITABLE_ID_TYPES = void 0; | ||
const JENDELEY_VERSION = "2.0.7"; | ||
const JENDELEY_VERSION = "2.0.9"; | ||
exports.JENDELEY_VERSION = JENDELEY_VERSION; | ||
@@ -6,0 +6,0 @@ const JENDELEY_NO_TRACK = "[jendeley no track]"; |
@@ -206,2 +206,12 @@ "use strict"; | ||
} | ||
const regexpDOI8 = new RegExp("\\[\\s*jendeley\\s+doi\\s+10_([0-9]{4,})_([A-Za-z]+)_([0-9_]+)\\s*\\]", "g"); | ||
const foundDOI8 = [...filename.matchAll(regexpDOI8)]; | ||
for (const f of foundDOI8) { | ||
console.log(f); | ||
const head = f[1]; | ||
const body = f[2]; | ||
const tail = f[3].replaceAll("_", "."); | ||
const d = `10.${head}/${body}/${tail}`; | ||
return (0, either_1.genRight)({ docIDType: "doi", doi: d }); | ||
} | ||
const regexpArxiv = new RegExp("\\[\\s*jendeley\\s+arxiv\\s+([0-9]{4}_[0-9v]+)\\s*\\]", "g"); | ||
@@ -208,0 +218,0 @@ const foundArxiv = [...filename.matchAll(regexpArxiv)]; |
@@ -196,2 +196,7 @@ "use strict"; | ||
})); | ||
test("DOI from path https://github.com/akawashiro/jendeley/issues/258", () => __awaiter(void 0, void 0, void 0, function* () { | ||
const pdf = ["27-2-573 [jendeley doi 10_1093_nar_27_2_573].pdf"]; | ||
const docID = yield (0, docid_1.getDocID)(pdf, ["hoge"], false, undefined); | ||
expect(docID).toStrictEqual(rightDoi("10.1093/nar/27.2.573")); | ||
})); | ||
test.skip("Lonely planet China", () => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -198,0 +203,0 @@ const pdf = ["lonelyplanet-china-15-full-book.pdf"]; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "2.0.7", | ||
"version": "2.0.9", | ||
"description": "", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"build": "npx tsc", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest --silent=false --verbose false", | ||
"scan_test_pdfs": "npm run build && node --require source-map-support/register dist/index.js scan --papers_dir test_pdfs --book_dirs test_pdfs/dummyTapl", | ||
@@ -18,0 +18,0 @@ "profile_scan_test_pdfs": "npm run build && node --require source-map-support/register --prof dist/index.js scan --papers_dir test_pdfs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5480671
7509