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 06170b6 commit 9c587a6Copy full SHA for 9c587a6
packages/node_modules/pouchdb-find/src/adapters/local/utils.js
@@ -18,6 +18,7 @@ function massageSort(sort) {
18
});
19
}
20
21
+const ddocIdPrefix = /^_design\//;
22
function massageUseIndex(useIndex) {
23
let cleanedUseIndex = [];
24
if (typeof useIndex === 'string') {
@@ -27,7 +28,7 @@ function massageUseIndex(useIndex) {
27
28
29
30
return cleanedUseIndex.map(function (name) {
- return name.replace('_design/', '');
31
+ return name.replace(ddocIdPrefix, '');
32
33
34
0 commit comments