uranusjr commented on code in PR #60999:
URL: https://github.com/apache/airflow/pull/60999#discussion_r2730439111


##########
task-sdk/src/airflow/sdk/definitions/_internal/templater.py:
##########
@@ -37,6 +40,10 @@
     from airflow.sdk.types import Operator
 
 
+# Regex pattern to detect zip file paths: matches 
"path/to/archive.zip/inner/path"
+ZIP_REGEX = re.compile(rf"((.*\.zip){re.escape(os.sep)})?(.*)")

Review Comment:
   This pattern would also miss top-level files such as 
`path/to/archive.zip/foo.py`



-- 
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]

Reply via email to