jason810496 commented on code in PR #42902:
URL: https://github.com/apache/airflow/pull/42902#discussion_r1796421462
##########
airflow/utils/file.py:
##########
@@ -356,5 +356,6 @@ def get_unique_dag_module_name(file_path: str) -> str:
if isinstance(file_path, str):
path_hash = hashlib.sha1(file_path.encode("utf-8")).hexdigest()
org_mod_name = Path(file_path).stem
+ org_mod_name = org_mod_name.replace("-", "_")
Review Comment:
resolve: Use regex as a more general approach to replace special characters
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]