From b47cd43f12cf19031c6c4c4fb122e7cbcbd3f09e Mon Sep 17 00:00:00 2001 From: Stefan Seeland <168659+stesee@users.noreply.github.com> Date: Wed, 22 Oct 2025 07:28:42 +0200 Subject: [PATCH 1/2] Update rules in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 512f9ea..a82b697 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Sanitizes file and directory names to ensure compatibility with Windows (NTFS & [![.NET build and test](https://github.com/Codeuctivity/SanitizeFilename/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Codeuctivity/SanitizeFilename/actions/workflows/dotnet.yml) [![NuGet](https://img.shields.io/nuget/v/Codeuctivity.SanitizeFilename.svg)](https://www.nuget.org/packages/Codeuctivity.SanitizeFilename/) [![Donate](https://img.shields.io/static/v1?label=Paypal&message=Donate&color=informational)](https://www.paypal.com/donate?hosted_button_id=7M7UFMMRTS7UE) -Implements rules documented by [Microsoft](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions) + file name length truncation to 255 bytes, which is common on [many modern](https://en.wikipedia.org/wiki/Comparison_of_file_systems) file systems. Runs on any .NET platform. +Implements rules documented by [Microsoft](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions) + file name length truncation to 255 bytes, which is common on [many modern](https://en.wikipedia.org/wiki/Comparison_of_file_systems) file systems + some unicode edge cases. Runs on any .NET platform. ## Example @@ -37,7 +37,7 @@ Restrictions of Windows, Linux and macOS are all combined to an replacement patt | Max length | Linux, Windows, macOS | | 255 chars | | Unpaired Unicode surrogates | macOS, Linux | Windows | U+D800 - U+DFFF | | NotAssigned to Unicode | macOS | Linux, Windows | U+67803, ... | -| "New" Unicode (today 17+) | macOS | Linux, Windows | 🫩 (U+1FAE9), ... | +| "New" Unicode (today 17+) | macOS | Linux, Windows | 🫩 [🫈](https://emojipedia.org/hairy-creature), ... | ## .NET framework support @@ -60,4 +60,4 @@ $vhdsize = 100MB New-VHD -Path $vhdpath -Dynamic -SizeBytes $vhdsize | Mount-VHD -Passthru |Initialize-Disk -Passthru |New-Partition -AssignDriveLetter -UseMaximumSize |Format-Volume -FileSystem 'exFAT' -Confirm:$false -NewFileSystemLabel '{exfatLabel}' -Force|Out-Null ``` -Running as admin will automatically create and mount a exFat drive while tests are running. \ No newline at end of file +Running as admin will automatically create and mount a exFat drive while tests are running. From e244a2c8bf0ffef6bc03d39d5dfb66ef565cf32a Mon Sep 17 00:00:00 2001 From: "Stefan.Seeland" <168659+stesee@users.noreply.github.com> Date: Wed, 22 Oct 2025 07:32:53 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a82b697..90dd0c5 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Restrictions of Windows, Linux and macOS are all combined to an replacement patt | Max length | Linux, Windows, macOS | | 255 chars | | Unpaired Unicode surrogates | macOS, Linux | Windows | U+D800 - U+DFFF | | NotAssigned to Unicode | macOS | Linux, Windows | U+67803, ... | -| "New" Unicode (today 17+) | macOS | Linux, Windows | 🫩 [🫈](https://emojipedia.org/hairy-creature), ... | +| "New" Unicode (today 17+) | macOS | Linux, Windows | [🫈](https://emojipedia.org/hairy-creature), ... | ## .NET framework support