We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f1be43 + 953c5eb commit a0768efCopy full SHA for a0768ef
metar/Metar.py
@@ -85,8 +85,8 @@ class ParserError(Exception):
85
re.VERBOSE,
86
)
87
TEMP_RE = re.compile(
88
- r"""^(?P<temp>(M|-)?\d+|//|XX|MM)/
89
- (?P<dewpt>(M|-)?\d+|//|XX|MM)?\s+""",
+ r"""^(?P<temp>(M|-)?\d{1,2}|//|XX|MM)/
+ (?P<dewpt>(M|-)?\d{1,2}|//|XX|MM)?\s+""",
90
91
92
PRESS_RE = re.compile(
test/test_metar.py
@@ -653,3 +653,7 @@ def test_cor_auto_mod():
653
m = Metar.Metar(code, year=2019)
654
655
assert m.mod == 'COR AUTO'
656
+
657
658
+def test_issue136_temperature():
659
+ raisesParserError("METAR EDDM 022150Z 26006KT CAVOK 201/16")
0 commit comments