Skip to content

Commit

Permalink
Merge pull request #13839 from Snuffleupagus/issue-13838
Browse files Browse the repository at this point in the history
Fix a broken regular expression in the `docId` unit-test (issue 13838, PR 13813 follow-up)
  • Loading branch information
timvandermeij authored Aug 1, 2021
2 parents 273cea8 + 16a09ea commit 4cdac66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/api_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 4cdac66

Please sign in to comment.