Skip to content

Commit 967bb03

Browse files
committed
Reorder logic for ignore wildcard to be opt-in
1 parent 603f158 commit 967bb03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
getAll: async function getAll(options) {
3535
const data = {}
3636
const keys = (await module.exports.keys()).filter((key) => {
37-
return options.wildcard ? key.match(keyRegex(options.pathname)) : key.startsWith(options.pathname)
37+
return options.ignoreWildcard ? key.startsWith(options.pathname) : key.match(keyRegex(options.pathname))
3838
})
3939

4040
for (let key of keys) {

0 commit comments

Comments
 (0)