Skip to content

Commit 7cff1b9

Browse files
authored
Merge pull request #21 from grumBit/Change-regexp-syntax
Change regexp syntax to make ignoring case compatible with python 3.12
2 parents 83b3424 + 4243520 commit 7cff1b9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

RELEASENOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
### v1.1.11 [2024-02-08]
4+
5+
- Fixes;
6+
- [Latest version 1.1.10 does not seem to work with Python 3.12](https://github.com/grumBit/aws_cron_expression_validator/issues/20)
7+
38
### v1.1.10 [2024-02-01]
49

510
- Fixes;

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "aws_cron_expression_validator"
7-
version = "1.1.10"
7+
version = "1.1.11"
88
authors = [
99
{ name="Graham Coster", email="bitjugglers@gmail.com" },
1010
]

src/aws_cron_expression_validator/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class AWSCronExpressionValidator:
5151
minute_values = r"(0?[0-9]|[1-5][0-9])" # [0]0-59
5252
hour_values = r"(0?[0-9]|1[0-9]|2[0-3])" # [0]0-23
5353
month_of_day_values = r"(0?[1-9]|[1-2][0-9]|3[0-1])" # [0]1-31
54-
month_values = r"(?i)(0?[1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)" # [0]1-12 or JAN-DEC
55-
day_of_week_values = r"(?i)([1-7]|SUN|MON|TUE|WED|THU|FRI|SAT)" # 1-7 or SAT-SUN
54+
month_values = r"(?i:0?[1-9]|1[0-2]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)" # [0]1-12 or JAN-DEC
55+
day_of_week_values = r"(?i:[1-7]|SUN|MON|TUE|WED|THU|FRI|SAT)" # 1-7 or SAT-SUN
5656
day_of_week_hash = rf"({day_of_week_values}#[1-5])" # Day of the week in the Nth week of the month
5757
year_values = r"((19[7-9][0-9])|(2[0-1][0-9][0-9]))" # 1970-2199
5858
natural_number = r"([0-9]*[1-9][0-9]*)" # Integers greater than 0

0 commit comments

Comments
 (0)