From 1dad1ae0f86173e1d3cc72a4624d49665fef2f08 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 339ccd7aad..3932e9e389 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4066,7 +4066,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;