From 16a09eaed8aae966c28a51b3376788c8face11c5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 1 Aug 2021 15:18:25 +0200 Subject: [PATCH] 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! --- test/unit/api_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js index 55c6844e9..824d64009 100644 --- a/test/unit/api_spec.js +++ b/test/unit/api_spec.js @@ -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];