From 01e75ac83d2eb268529a7528bc7da335d8e35fd2 Mon Sep 17 00:00:00 2001 From: silentip404 <242152069+silentip404@users.noreply.github.com> Date: Mon, 10 Nov 2025 22:16:16 +0800 Subject: [PATCH] Improve macOS Icon pattern to prevent collaboration issues Replace invisible CR with character class Icon[^!-~] The literal CR character is frequently corrupted by: - Text editors auto-trimming invisible chars - Formatting tools (editorconfig) normalizing line endings - Copy/paste operations losing special characters - IDE auto-formatting and linting tools Character class pattern is collaboration-safe and functionally identical. --- Global/macOS.gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Global/macOS.gitignore b/Global/macOS.gitignore index a4557fbaea..06bbadd4f8 100644 --- a/Global/macOS.gitignore +++ b/Global/macOS.gitignore @@ -3,7 +3,10 @@ __MACOSX/ .AppleDouble .LSOverride -Icon[ ] + +# Finder custom icons +# Pattern [^!-~] prevents corruption by line-ending converters and editor auto-formatting +Icon[^!-~] # Thumbnails ._*