diff --git a/index.d.ts b/index.d.ts index f004571..dfd2bf1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -97,7 +97,7 @@ declare namespace cpy { (async () => { await cpy('foo', 'destination', { - filter: file => file.extension !== '.nocopy' + filter: file => file.extension !== 'nocopy' }); })(); ``` diff --git a/readme.md b/readme.md index 228bba8..6797754 100644 --- a/readme.md +++ b/readme.md @@ -121,7 +121,7 @@ const cpy = require('cpy'); (async () => { await cpy('foo', 'destination', { - filter: file => file.extension !== '.nocopy' + filter: file => file.extension !== 'nocopy' }); })(); ```