diff options
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/methods.py b/methods.py index a6416ccdd2..7067c21946 100644 --- a/methods.py +++ b/methods.py @@ -1016,13 +1016,13 @@ def get_compiler_version(env): else: # TODO: Implement for MSVC return None match = re.search( - "(?:(?<=version )|(?<=\) )|(?<=^))" - "(?P<major>\d+)" - "(?:\.(?P<minor>\d*))?" - "(?:\.(?P<patch>\d*))?" - "(?:-(?P<metadata1>[0-9a-zA-Z-]*))?" - "(?:\+(?P<metadata2>[0-9a-zA-Z-]*))?" - "(?: (?P<date>[0-9]{8}|[0-9]{6})(?![0-9a-zA-Z]))?", + r"(?:(?<=version )|(?<=\) )|(?<=^))" + r"(?P<major>\d+)" + r"(?:\.(?P<minor>\d*))?" + r"(?:\.(?P<patch>\d*))?" + r"(?:-(?P<metadata1>[0-9a-zA-Z-]*))?" + r"(?:\+(?P<metadata2>[0-9a-zA-Z-]*))?" + r"(?: (?P<date>[0-9]{8}|[0-9]{6})(?![0-9a-zA-Z]))?", version, ) if match is not None: |