diff --git a/index.html b/index.html index 8d64087..92535d9 100644 --- a/index.html +++ b/index.html @@ -6,31 +6,11 @@ diff --git a/package.json b/package.json index 0ce1fcd..c5aab73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.23.6", + "version": "0.23.7", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/path-events.ts b/src/path-events.ts index fa2219b..ed0da7d 100644 --- a/src/path-events.ts +++ b/src/path-events.ts @@ -142,7 +142,7 @@ export class PathEvent { const parsedFind = makeArray(filter).map(pe => new PathEvent(pe)); return parsedTarget.filter(t => { if(!t.fullPath && t.all) return true; - return !!parsedFind.find(f => t.fullPath.startsWith(f.fullPath) + return !!parsedFind.find(f => f.fullPath.startsWith(t.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length)); }); }