Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Redithion
Copy link

@Redithion Redithion commented Dec 29, 2021

The idea is to support wildcards when setting a day of week.
A use case for this is if you want to send an alert every hour only on weekdays.
Examples:

  • Mon **:**
  • Mon 15:**
  • Mon **:15
  • Mon **:**, Tue **:**, Wed **:**

This was resolved setting NOT_SPECIFIED in both min and hour when matching that case (/\A([[:alpha:]]+)\s\*{1,2}:\*{1,2}\z/).

I've also updated the README reflecting this change.

Accept not specified minutes and hour with a given weekday.
Added the new formats supported and an example
Combined two separate blocks of code into one in :at example
@Redithion
Copy link
Author

I don't know why CI fails, we are using this in prod with Ruby 2.1 and Ruby 2.7

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.

1 participant