Skip to content

Commit

Permalink
Merge pull request #1 from men232/patch-1
Browse files Browse the repository at this point in the history
Fix parsing index compound keys
  • Loading branch information
unicornist authored Dec 25, 2019
2 parents 4f9968e + 6199d64 commit 5cff02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function beautify(error, collection, values, messages, defaultMessage) {
var matches = errorRegex.exec(error.message);

if (matches) {
var indexName = matches[1];
var indexName = matches[1].split('$').pop();

// Retrieve that index's list of fields
onSuberrors = getIndexes(collection).then(function (indexes) {
Expand Down

0 comments on commit 5cff02a

Please sign in to comment.