]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_accurate.c
ccanlint: handle nested modules when mentioned in examples.
[ccan] / tools / ccanlint / tests / depends_accurate.c
index 83a19e2cea57ad041f5c71584a9eb5beb23b008d..05ada48a40dc8b829c361beca5ba9d17350abc6c 100644 (file)
@@ -48,7 +48,7 @@ static bool check_dep_includes(struct manifest *m,
                char *mod;
                if (!strreg(f, lines[i],
                            "^[ \t]*#[ \t]*include[ \t]*[<\"]"
-                           "(ccan/+.+)/+[^/]+.h", &mod))
+                           "(ccan/+.+)/+[^/]+\\.h", &mod))
                        continue;
 
                if (has_dep(m, deps, used, mod))