diff --git a/hooks/conan-center.py b/hooks/conan-center.py index 874cc0ee..008ba7f2 100644 --- a/hooks/conan-center.py +++ b/hooks/conan-center.py @@ -727,7 +727,7 @@ def test(out): @run_test("KB-H065", output) def test(out): - pattern = re.compile(r"self\.cpp_info\..*(names\[|filenames\[|build_modules)") + pattern = re.compile(r"self\.cpp_info\..*\.(names\[|filenames\[|build_modules)") if pattern.search(conanfile_content): out.error("Using 'names', 'filenames' and 'build_modules' is deprecated from Conan 1.42. " "Use 'set_property' and 'get_property' methods of the cpp_info object instead.")