Skip to content

Fix #18#19

Merged
RadhiFadlillah merged 3 commits intomarkusmobius:mainfrom
spraot:fix_bug_18
Apr 27, 2025
Merged

Fix #18#19
RadhiFadlillah merged 3 commits intomarkusmobius:mainfrom
spraot:fix_bug_18

Conversation

@spraot
Copy link
Copy Markdown
Contributor

@spraot spraot commented Mar 3, 2025

No description provided.

@spraot
Copy link
Copy Markdown
Contributor Author

spraot commented Mar 10, 2025

This fixes #18

@RadhiFadlillah RadhiFadlillah merged commit cda20da into markusmobius:main Apr 27, 2025
@RadhiFadlillah
Copy link
Copy Markdown
Collaborator

Thanks for the PR, and sorry for late merge!

Really nice catch with this issue, I wouldn't have expected it. The only change I made to your code was adjusting the boolean operation:

--- !(tokenWeekdayExist && !tokenYearExist && !tokenMonthExist && !tokenDayExist)
+++ tokenWeekdayExist && !tokenYearExist && !tokenMonthExist && !tokenDayExist

I did this because in my experience, it's easy to overlook the negation operator before parentheses, so I prefer to flip the logic directly.

Anyway, nice PR and thanks!

@spraot spraot deleted the fix_bug_18 branch April 28, 2025 06:24
@spraot
Copy link
Copy Markdown
Contributor Author

spraot commented Apr 28, 2025

Nice, will you make a release with the changes?

@RadhiFadlillah
Copy link
Copy Markdown
Collaborator

Yep, I've released v1.2.4 with the latest changes.

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