diff --git a/packages/node_modules/pouchdb-find/src/adapters/local/utils.js b/packages/node_modules/pouchdb-find/src/adapters/local/utils.js index 149ec587cc..11d0a91e25 100644 --- a/packages/node_modules/pouchdb-find/src/adapters/local/utils.js +++ b/packages/node_modules/pouchdb-find/src/adapters/local/utils.js @@ -27,7 +27,7 @@ function massageUseIndex(useIndex) { } return cleanedUseIndex.map(function (name) { - return name.replace('_design/', ''); + return name.replace(/^_design\//, ''); }); }