-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Introduce %y formatter #268
Conversation
gwbres
commented
Dec 16, 2023
- Support %yy year on two digits
* Support %yy year on two digits Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #268 +/- ##
==========================================
- Coverage 80.74% 80.73% -0.01%
==========================================
Files 16 16
Lines 3754 3769 +15
==========================================
+ Hits 3031 3043 +12
- Misses 723 726 +3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Looks good, thanks! Closes #267 |
decomposed[0] = sub_str | ||
.parse::<i32>() | ||
.map_err(|_| Errors::ParseError(ParsingErrors::ValueError))? | ||
+ 2000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopherRabotin shouldn't sub_str
be trimmed() here, so .parse()
never fails ?
In other terms, may whitespaces exist prior next separator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't think of this. I forget how it works. Don't we parse token by token and therefore it isn't possible to have a space? Do the other cases have a sub str? I'm afraid I'm busy this weekend and can't look into this.
Hello, |
Sure! I'll release it today.
…On Sat, Dec 30, 2023, 05:08 gwbres ***@***.***> wrote:
Hello,
would it be possible to release this ?
—
Reply to this email directly, view it on GitHub
<#268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEZV2ACWB3XHE5Z5MNN7TLYL775TAVCNFSM6AAAAABAXQ4JKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGUYTKOJRGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello Chris, |