mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Accept length-7 sortIndexes for snapshots (#5209)
This commit is contained in:
parent
2db51eb0e5
commit
246005a097
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue