-
Notifications
You must be signed in to change notification settings - Fork 74
Build without CPPRestSDK #24
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
Conversation
ca1137e
to
f57e9d0
Compare
auto date = utility::datetime::from_string(utility::conversions::to_string_t(date_str), utility::datetime::ISO_8601); | ||
ASSERT_EQ(date_str, utility::conversions::to_utf8string(date.to_string(utility::datetime::ISO_8601))); | ||
//0000-0-00T00:00:00Z [message ] message\n | ||
std::regex r{ "[\\d]{4}-[\\d]{2}-[\\d]{2}T[\\d]{2}:[\\d]{2}:[\\d]{2}Z \\[.{12}\\] \\w{1,}\\n" }; |
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.
Could you just put \\[message \\] message\\n
instead of the more generic \\[.{12}\\] \\w{1,}\\n
at the end of the regex and do both parts of the test at once?
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.
I'll try, and if you have other ideas for cleaning this regex up that'd be nice too :D
Fixes dotnet/aspnetcore#8718