diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index e7babff473..9cb769c2fe 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3825,7 +3825,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;