From 2a2aef4734b368b4dcf46900d1ba00dc6cde509e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 06:03:42 +0000 Subject: [PATCH 1/2] Initial plan From d9a9def8fe657a10fe2633cd8af80241ae035d95 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 06:11:50 +0000 Subject: [PATCH 2/2] fix: add .gitattributes to enforce LF line endings for Windows CI On Windows, git checks out text files with CRLF line endings by default. This caused test failures because: - Snapshot files had CRLF but transform output had LF - Transform functions produced different output due to \r in input - CRLF-sensitive regex patterns failed to match properly Adding `* text=auto eol=lf` ensures all text files use LF line endings on all platforms, matching the behavior on Linux and macOS. Co-authored-by: Simon-He95 <57086651+Simon-He95@users.noreply.github.com> Agent-Logs-Url: https://github.com/Simon-He95/transformToUnoCSS/sessions/c29a2371-a2b9-4fc0-bd70-45db2ad8d953 --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2666ebb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Enforce LF line endings for all text files to ensure consistent +# behavior across platforms (fixes Windows CI test failures caused by CRLF) +* text=auto eol=lf