Skip to content

Commit 7231ddd

Browse files
author
alxndrsn
committed
pouchdb-find: make _design/ prefix removal more specific
1 parent 84b7afb commit 7231ddd

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/pouchdb-find/src/adapters/local

1 file changed

+1
-1
lines changed

packages/node_modules/pouchdb-find/src/adapters/local/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function massageUseIndex(useIndex) {
2727
}
2828

2929
return cleanedUseIndex.map(function (name) {
30-
return name.replace('_design/', '');
30+
return name.replace(/^_design\//, '');
3131
});
3232
}
3333

0 commit comments

Comments
 (0)