Skip to content

Commit

Permalink
Review follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-berlin-wmse committed Jan 23, 2024
1 parent 797aa2d commit c988662
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libris.js → LIBRIS ISBN.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"translatorID": "5f506a9a-8076-4e1e-950c-f55d32003aae",
"label": "Libris",
"label": "LIBRIS ISBN",
"creator": "Sebastian Berlin",
"target": "",
"minVersion": "5.0",
"maxVersion": "",
"priority": 98,
"inRepository": true,
"translatorType": 8,
"lastUpdated": "2023-11-14 12:10:23"
"lastUpdated": "2024-01-23 08:54:03"
}

/*
Expand Down Expand Up @@ -41,7 +41,7 @@ function detectSearch(item) {

// Filter by country code 91 (Sweden).
let isbn = ZU.cleanISBN(item.ISBN);
return isbn.search(/^(97[8-9])?91/) === 0;
return /^(97[8-9])?91/.test(isbn);
}

async function doSearch(item) {
Expand Down Expand Up @@ -82,7 +82,7 @@ var testCases = [
"date": "2008",
"ISBN": "9789197710947",
"edition": "Ny utg.",
"libraryCatalog": "Libris",
"libraryCatalog": "LIBRIS ISBN",
"numPages": "244",
"place": "Ronneby",
"publisher": "Hexa",
Expand Down

0 comments on commit c988662

Please sign in to comment.