We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c8909 commit 0473c90Copy full SHA for 0473c90
src/Adapters/Storage/Mongo/MongoStorageAdapter.js
@@ -33,7 +33,7 @@ const mongoUniqueIndexErrorFormatter = (message) => {
33
* Sample error message that we are getting from mongo
34
* 'Plan executor error during findAndModify :: caused by :: E11000 duplicate key error collection: parseServerMongoAdapterTestDatabase.test_UniqueIndexClass index: code_1 dup key: { code: 2 }'
35
*/
36
- const regex = /collection:\s*([\w]+)\.([\w]+)\s+index:\s*([\w_]+)/;
+ const regex = /collection:\s*([\w-]+)\.([\w-]+)\s+index:\s*([\w-]+)/;
37
38
const match = message.match(regex);
39
0 commit comments