Skip to content

Commit 3b4465b

Browse files
authored
Added extra example for url.filter for a common scenario
1 parent 830fe2c commit 3b4465b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ module.exports = {
160160
if (url.includes("img.png")) {
161161
return false;
162162
}
163+
164+
// Don't handle images under root-relatve /external_images/
165+
if (/^\/external_images\//.test(path)) {
166+
return false;
167+
}
163168

164169
return true;
165170
},

0 commit comments

Comments
 (0)