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.
This commit is contained in:
silentip404 2025-11-10 22:16:16 +08:00
parent fc6ce5da28
commit 01e75ac83d

View file

@ -3,7 +3,10 @@
__MACOSX/
.AppleDouble
.LSOverride
Icon[ ]
# Finder custom icons
# Pattern [^!-~] prevents corruption by line-ending converters and editor auto-formatting
Icon[^!-~]
# Thumbnails
._*