The regexp used to identify primary key constraint violation is too strict

Description

This regexp was introduced in to differentiate between primary key constraint violations and unique indexes violation.

Looks like it was made a bit too strict as it doesn't work with MongoDB 3.2.7.

I will make it more permissive while keeping it sufficiently strong to avoid false positives.

Environment

None

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Sprint

None

Fix versions

Priority

Minor
Configure