Fix a broken regular expression in the docId unit-test (issue 13838, PR 13813 follow-up)

The current regular expression contains a typo, leading to intermittent test-failures for certain `docId`s; sorry about that!
This commit is contained in:
Jonas Jenwald 2021-08-01 15:18:25 +02:00
parent 273cea8675
commit 16a09eaed8

View File

@ -397,7 +397,7 @@ describe("api", function () {
expect(docId1).not.toEqual(docId2);
const docIdRegExp = /^d(\d)+$/,
const docIdRegExp = /^d(\d+)$/,
docNum1 = docIdRegExp.exec(docId1)?.[1],
docNum2 = docIdRegExp.exec(docId2)?.[1];