From 246005a09734735bedd2f05cbecee0b8fcacb55b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 16 Apr 2025 01:52:09 -0400 Subject: [PATCH] Accept length-7 sortIndexes for snapshots (#5209) --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 6e62e3f6c2..b7fa02243c 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4061,7 +4061,7 @@ for (let name of ['type', 'authorName', 'text', 'comment', 'color', 'pageLabel', break; case 'sortIndex': - if (!/^(\d{5}\|\d{6}\|\d{5}|\d{5}\|\d{8}|\d{8})$/.test(value)) { + if (!/^(\d{5}\|\d{6}\|\d{5}|\d{5}\|\d{8}|\d{7,8})$/.test(value)) { throw new Error(`Invalid sortIndex '${value}'`); } break;