Allow >4 numbers after the decimal point in Dewey

https://github.com/zotero/zotero/pull/2538#issuecomment-1097292396
This commit is contained in:
Abe Jellinek 2022-04-12 15:45:50 -07:00
parent ce39185fa7
commit 3792c89fbd

View file

@ -1354,7 +1354,7 @@ var ItemTree = class ItemTree extends LibraryTree {
}
if (sortField == 'callNumber') {
let deweyRe = /^(\d{3})(?:\.(\d{1,4}))?(?:\/([a-zA-Z]{3}))?$/;
let deweyRe = /^(\d{3})(?:\.(\d+))?(?:\/([a-zA-Z]{3}))?$/;
let splitA = fieldA.toLowerCase().replace(/\s/g, '').match(deweyRe);
let splitB = fieldB.toLowerCase().replace(/\s/g, '').match(deweyRe);
if (splitA && splitB) {