Accept length-7 sortIndexes for snapshots (#5209)

This commit is contained in:
Abe Jellinek 2025-04-16 01:52:09 -04:00
parent 3dfe2a5321
commit 1dad1ae0f8

View file

@ -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;