Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
looks up all docs with mixed case package names
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbot committed Aug 1, 2014
1 parent 2f7d900 commit 20f5f18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions registry/views.js
Expand Up @@ -9,6 +9,12 @@ views.norevs = { map: function (doc) {
}
}, reduce: "_sum" }

views.mixedcase = { map: function (doc) {
if (doc.name.toLowerCase() !== doc.name) {
emit(doc._id, doc._id)
}
} }

views.conflicts = { map: function (doc) {
if (doc._conflicts) {
for (var i = 0; i < doc._conflicts.length; i++) {
Expand Down

0 comments on commit 20f5f18

Please sign in to comment.