From 6f506bbc3de86d217df8986242e5fbed7db2aa81 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Jul 2023 19:54:56 -0400 Subject: [PATCH] Make annotation sortIndex more flexible (cherry picked from commit af892e5cbd75b3e769d2702258210c1e70b88e1f) --- 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 56178cb38d..640b14d703 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3838,7 +3838,7 @@ for (let name of ['type', 'authorName', 'text', 'comment', 'color', 'pageLabel', break; case 'sortIndex': - if (!/^\d{5}\|\d{6}\|\d{5}$/.test(value)) { + if (!/^(\d{5}\|\d{6}\|\d{5}|\d{5}\|\d{8}|\d{8})$/.test(value)) { throw new Error(`Invalid sortIndex '${value}'`); } break;