Skip to content

Commit 0473c90

Browse files
Apply suggestion from @RahulLanjewar93
Signed-off-by: Rahul Lanjewar <63550998+RahulLanjewar93@users.noreply.github.com>
1 parent 17c8909 commit 0473c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const mongoUniqueIndexErrorFormatter = (message) => {
3333
* Sample error message that we are getting from mongo
3434
* 'Plan executor error during findAndModify :: caused by :: E11000 duplicate key error collection: parseServerMongoAdapterTestDatabase.test_UniqueIndexClass index: code_1 dup key: { code: 2 }'
3535
*/
36-
const regex = /collection:\s*([\w]+)\.([\w]+)\s+index:\s*([\w_]+)/;
36+
const regex = /collection:\s*([\w-]+)\.([\w-]+)\s+index:\s*([\w-]+)/;
3737

3838
const match = message.match(regex);
3939

0 commit comments

Comments
 (0)