Trim down ISSN/ISBN test for characters that should not be ignored
This commit is contained in:
parent
e1c1803ce2
commit
cc173ff1e5
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ describe("Zotero.Utilities", function() {
|
|||
assert.equal(cleanISBN('9781' + ignoredChars + '234567897'), '9781234567897', 'stripped off all ignored characters');
|
||||
|
||||
let isbnChars = ignoredChars + '1234567890';
|
||||
for (let i=1; i<65536; i++) {
|
||||
for (let i=1; i<1327; i++) { // More common characters through Cyrillic letters
|
||||
let c = String.fromCharCode(i);
|
||||
if (isbnChars.indexOf(c) != -1) continue;
|
||||
|
||||
|
@ -143,7 +143,7 @@ describe("Zotero.Utilities", function() {
|
|||
assert.equal(cleanISSN('1' + ignoredChars + '2345679'), '1234-5679', 'stripped off all ignored characters');
|
||||
|
||||
let isbnChars = ignoredChars + '1234567890';
|
||||
for (let i=1; i<65536; i++) {
|
||||
for (let i=1; i<1327; i++) { // More common characters through Cyrillic letters
|
||||
let c = String.fromCharCode(i);
|
||||
if (isbnChars.indexOf(c) != -1) continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue