Allow >4 numbers after the decimal point in Dewey
https://github.com/zotero/zotero/pull/2538#issuecomment-1097292396
This commit is contained in:
parent
ce39185fa7
commit
3792c89fbd
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue