From 0cb92bc077d226c7a82ae62562f64fb83066a801 Mon Sep 17 00:00:00 2001 From: Julie Kwok Date: Tue, 13 Jan 2026 14:26:51 +1300 Subject: [PATCH] fix: Fixes invalid escape sequence syntax error in VERSION_PATTERN --- src/amplitude_experiment/evaluation/semantic_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude_experiment/evaluation/semantic_version.py b/src/amplitude_experiment/evaluation/semantic_version.py index c9f7b48..5ca7f0a 100644 --- a/src/amplitude_experiment/evaluation/semantic_version.py +++ b/src/amplitude_experiment/evaluation/semantic_version.py @@ -13,7 +13,7 @@ PRERELEASE_REGEX = r'(-(([-\w]+\.?)*))?' # Version pattern should be major.minor(.patchAndPreRelease) where .patchAndPreRelease is optional -VERSION_PATTERN = f'^{MAJOR_MINOR_REGEX}(\.{PATCH_REGEX}{PRERELEASE_REGEX})?$' +VERSION_PATTERN = fr'^{MAJOR_MINOR_REGEX}(\.{PATCH_REGEX}{PRERELEASE_REGEX})?$' @dataclass class SemanticVersion: