Skip to content

Commit 7fe20e0

Browse files
chore: refactor regular expression for simplicity
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 9423409 commit 7fe20e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer/tools/composer_dags.py

Lines changed: 1 addition & 1 deletion
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+)\.(\d+))?.*?-airflow-(\d+)\.(\d+)\.(\d+)"
3737
)
3838

3939
@staticmethod

0 commit comments

Comments
 (0)