We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abe23b6 commit 3720701Copy full SHA for 3720701
tests/test_main.cpp
@@ -63,7 +63,7 @@ std::string visualize(const std::string& input) {
63
64
std::string normalize_date(const std::string& input) {
65
// Pattern 1: dd Mon YYYY (e.g., 26 Jul 2024 or 06 Dec 2025)
66
- std::regex pattern1(R"(\b\d{1,2} [A-Z][a-z]{2} \d{4}\b)");
+ std::regex pattern1(R"(\b\d{1,2} [A-Z][a-z]+ \d{4}\b)");
67
// Pattern 2: YYYY-MM-DD (e.g., 2025-12-16)
68
std::regex pattern2(R"(\b\d{4}-\d{2}-\d{2}\b)");
69
0 commit comments