We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ea4a4f commit 3ed6047Copy full SHA for 3ed6047
src/croniter/croniter.py
@@ -48,7 +48,10 @@
48
hash_expression_re = re.compile(
49
r'^(?P<hash_type>h|r)(\((?P<range_begin>\d+)-(?P<range_end>\d+)\))?(\/(?P<divisor>\d+))?$'
50
)
51
-VALID_LEN_EXPRESSION = [5, 6]
+UNIX_CRON_LEN = 5
52
+SECOND_CRON_LEN = 6
53
+YEAR_CRON_LEN = 7
54
+VALID_LEN_EXPRESSION = set([UNIX_CRON_LEN, SECOND_CRON_LEN])
55
EXPRESSIONS = {}
56
57
0 commit comments