Make annotation sortIndex more flexible
(cherry picked from commit af892e5cbd
)
This commit is contained in:
parent
78865ed2ef
commit
6f506bbc3d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue