Skip to content

Commit 3720701

Browse files
committed
fix(test): relax regex to match full month names in date normalization
1 parent abe23b6 commit 3720701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ std::string visualize(const std::string& input) {
6363

6464
std::string normalize_date(const std::string& input) {
6565
// 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)");
66+
std::regex pattern1(R"(\b\d{1,2} [A-Z][a-z]+ \d{4}\b)");
6767
// Pattern 2: YYYY-MM-DD (e.g., 2025-12-16)
6868
std::regex pattern2(R"(\b\d{4}-\d{2}-\d{2}\b)");
6969

0 commit comments

Comments
 (0)