diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index bc75b02..0757f4e 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -13,6 +13,6 @@ logger.error(f" More info: {link}") sys.exit(1) -if re.match(r"_", "{{cookiecutter.plugin_name}}"): +if re.search(r"_", "{{cookiecutter.plugin_name}}"): logger.error("PyPI.org and pip discourage package names with underscores.") sys.exit(1)