1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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