parent
f2209974b2
commit
745069c070
2 changed files with 15 additions and 5 deletions
|
@ -1163,5 +1163,17 @@ describe("Zotero.Items", function () {
|
|||
assert.equal(Zotero.Items.getSortTitle(input), expected);
|
||||
}
|
||||
});
|
||||
|
||||
it("should not strip any punctuation before a digit", function () {
|
||||
let tests = [
|
||||
['1.5', '1.5'],
|
||||
['abc .5', 'abc .5'],
|
||||
['abc 5.', 'abc 5']
|
||||
];
|
||||
|
||||
for (let [input, expected] of tests) {
|
||||
assert.equal(Zotero.Items.getSortTitle(input), expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue