Make annotation sortIndex more flexible

This commit is contained in:
Dan Stillman 2023-07-06 19:54:56 -04:00
parent b6d0ad3e05
commit af892e5cbd

View file

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