1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

slightly more restrictive month test, disallow '00'

This commit is contained in:
Joel Bender
2015-09-07 21:58:38 -04:00
parent 72fdddaf33
commit ccd7558476
3 changed files with 3 additions and 3 deletions

View File

@@ -1103,7 +1103,7 @@ def expand_enumerations(klass):
# Date
#
_mm = r'(?P<month>0?\d|1[0-4]|odd|even|255|[*])'
_mm = r'(?P<month>0?[1-9]|1[0-4]|odd|even|255|[*])'
_dd = r'(?P<day>[0-3]?\d|last|odd|even|255|[*])'
_yy = r'(?P<year>\d{2}|255|[*])'
_yyyy = r'(?P<year>\d{4}|255|[*])'