Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid indexerror in replace names #13

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Conversation

sindrig
Copy link
Contributor

@sindrig sindrig commented Jun 13, 2023

#12 introduced a regression in that invalid cron entries (entries with fewer than 5 parts) were throwing IndexError. Fixed by ignoring invalid cron entries in replace_names.

Also moved the regex compilation outside replace_names to be reused in consecutive calls.

kaka2507#12 introduced a regression in that invalid
cron entries (entries with fewer than 5 parts) were throwing
IndexError. Fixed by ignoring invalid cron entries in `replace_names`.

Also moved the regex compilation outside `replace_names` to be reused
in consecutive calls.
@kaka2507
Copy link
Owner

Thanks for your patch. I did not investigate enough due to lacking time.

@kaka2507 kaka2507 merged commit d497fcf into kaka2507:master Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants