]> sjero.net Git - wget/blobdiff - src/recur.c
Add support for -accept-regex and --reject-regex.
[wget] / src / recur.c
index 139fe2e3978d2ecff6b02255153a1d664494802a..72274fb52673c36f0924ccbfb1dbc306b5f12bfa 100644 (file)
@@ -586,6 +586,11 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
           goto out;
         }
     }
+  if (!accept_url (url))
+    {
+      DEBUGP (("%s is excluded/not-included through regex.\n", url));
+      goto out;
+    }
 
   /* 6. Check for acceptance/rejection rules.  We ignore these rules
      for directories (no file name to match) and for non-leaf HTMLs,