Skip to content

Commit

Permalink
pouchdb-find: make _design/ prefix removal more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Apr 29, 2024
1 parent 84b7afb commit 1b7a0f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function massageUseIndex(useIndex) {
}

return cleanedUseIndex.map(function (name) {
return name.replace('_design/', '');
return name.substr(8); // remove _design/ prefix
});
}

Expand Down

0 comments on commit 1b7a0f6

Please sign in to comment.