From a29d3eec7a6196ced8650b137b19d3d7520400af Mon Sep 17 00:00:00 2001 From: "Dotan J. Nahum" Date: Thu, 14 Nov 2024 03:57:34 +0200 Subject: [PATCH] ci --- loco-new/tests/assertion/string.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loco-new/tests/assertion/string.rs b/loco-new/tests/assertion/string.rs index bc148ce60..585fe869a 100644 --- a/loco-new/tests/assertion/string.rs +++ b/loco-new/tests/assertion/string.rs @@ -6,7 +6,8 @@ pub fn assert_line_regex(content: &str, expected: &str) { // Use assert! to check the regex match and panic if it fails assert!( - re.is_match(content), + // sanitize windows crlf + re.is_match(&content.replace('\r', "")), "Assertion failed: The content did not match the expected string. Expected: '{expected}', \ content:\n{content}" );