mirror of
https://github.com/github/gitignore.git
synced 2026-10-30 06:32:41 +01:00
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:
1 parent
fc6ce5da28
commit
01e75ac83d
1 file changed
+4
-1
@@ -3,7 +3,10 @@
|
|||||||
__MACOSX/
|
__MACOSX/
|
||||||
.AppleDouble
|
.AppleDouble
|
||||||
.LSOverride
|
.LSOverride
|
||||||
Icon[␍]
|
|
||||||
|
# Finder custom icons
|
||||||
|
# Pattern [^!-~] prevents corruption by line-ending converters and editor auto-formatting
|
||||||
|
Icon[^!-~]
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
._*
|
._*
|
||||||
|
|||||||
Reference in new issue
Block a user