Skip to content

Commit

Permalink
Web of Science Tagged: Fix breakage in Zotero 6
Browse files Browse the repository at this point in the history
trimEnd() isn't available in Zotero 6

Regression from 80c211d
  • Loading branch information
dstillman committed Jul 17, 2023
1 parent 4c8a8d0 commit cc7c3c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Web of Science Tagged.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"priority": 100,
"inRepository": true,
"translatorType": 1,
"lastUpdated": "2023-07-06 06:26:44"
"lastUpdated": "2023-07-17 03:09:44"
}

/*
Expand Down Expand Up @@ -410,7 +410,8 @@ ItemMap.prototype = {
function splitLine(line) {
// First trim line end and strip the line of BOM (U+FEFF) if any, as
// show in a test case
line = line.trimEnd();
// TODO: Use trimEnd() once Z6 support is dropped
line = line.replace(/\s*$/, '');
line = line.replace(/\uFEFF/g, "");

// skip empty line
Expand Down

0 comments on commit cc7c3c7

Please sign in to comment.