-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.0, bson-4.3.0
-
Component/s: None
-
Empty show more show less
-
Not Needed
Acceptance Criteria
- Fix the BSONRegex constructor to alphabetize the options
- Investigate and fix the spec test that isn't catching this error
Original Description
The options in a BSONRegExp are supposed to be always alphabetized.
https://github.com/mongodb/js-bson/blob/master/src/regexp.ts#L40
There is a spec test we should be failing here: https://github.com/mongodb/specifications/blob/859af7b17a0c99bdd727ec11dd8733ac25da7398/source/bson-corpus/tests/regex.json#L33-L37
- related to
-
NODE-2499 Make bson-ext support js-bson v4
- Closed