From 3792c89fbd9932761cb61efb52facd646c0608b8 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 12 Apr 2022 15:45:50 -0700 Subject: [PATCH] Allow >4 numbers after the decimal point in Dewey https://github.com/zotero/zotero/pull/2538#issuecomment-1097292396 --- chrome/content/zotero/itemTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/itemTree.jsx b/chrome/content/zotero/itemTree.jsx index 8b3e755dc5..3b8551ffa2 100644 --- a/chrome/content/zotero/itemTree.jsx +++ b/chrome/content/zotero/itemTree.jsx @@ -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) {