Skip to content

Commit 081fc8e

Browse files
theotherjimmyadbridge
authored andcommitted
Escape '.' in regex
1 parent 6e71c4c commit 081fc8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/toolchains/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ARM(mbedToolchain):
4141
SUPPORTED_CORES = ["Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4",
4242
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A9"]
4343
ARMCC_RANGE = (LooseVersion("5.06"), LooseVersion("5.07"))
44-
ARMCC_VERSION_RE = re.compile("Product: ARM Compiler (\d+.\d+)")
44+
ARMCC_VERSION_RE = re.compile("Product: ARM Compiler (\d+\.\d+)")
4545

4646
@staticmethod
4747
def check_executable():

tools/toolchains/iar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class IAR(mbedToolchain):
3030

3131
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)",(?P<line>[\d]+)\s+(?P<severity>Warning|Error|Fatal error)(?P<message>.+)')
3232
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
33-
IAR_VERSION_RE = re.compile("IAR ANSI C/C\+\+ Compiler V([0-9]+.[0-9]+)")
33+
IAR_VERSION_RE = re.compile("IAR ANSI C/C\+\+ Compiler V(\d+\.\d+)")
3434
IAR_VERSION = LooseVersion("7.80")
3535

3636
@staticmethod

0 commit comments

Comments
 (0)