Skip to content

Commit 9cf8624

Browse files
committed
Resolving issue with regex for composer environments
1 parent 1f44946 commit 9cf8624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer/tools/composer_dags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DAG:
3333
"""Provides necessary utils for Composer DAGs."""
3434

3535
COMPOSER_AF_VERSION_RE = re.compile(
36-
"composer-([0-9]+).([0-9]+).([0-9]+).*" "-airflow-([0-9]+).([0-9]+).([0-9]+).*"
36+
"composer-(\d+(?:\.\d+){0,2})-airflow-(\d+(?:\.\d+){0,2}).*"
3737
)
3838

3939
@staticmethod

0 commit comments

Comments
 (0)