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

Update day names handling in _to_int function #33

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

kipe
Copy link
Owner

@kipe kipe commented Sep 27, 2024

  • Updated the _to_int function to handle capitalized day names.
  • Changed the logic to convert all day names to lowercase before indexing them in the DAY_NAMES and DAY_ABBRS lists.
  • This change ensures that both uppercase and lowercase variants of a day name are correctly interpreted as the same value when converting strings to integers.

- Updated the `_to_int` function to handle capitalized day names.
- Changed the logic to convert all day names to lowercase before indexing them in the DAY_NAMES and DAY_ABBRS lists.
- This change ensures that both uppercase and lowercase variants of a day name are correctly interpreted as the same value when converting strings to integers.
@kipe kipe self-assigned this Sep 27, 2024
@kipe kipe linked an issue Sep 27, 2024 that may be closed by this pull request
- Update branch names in GitHub Actions workflows from `master` to `main`.
@kipe kipe merged commit 05b277c into main Sep 27, 2024
9 checks passed
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.

Make names case insensitive
1 participant