diff --git a/AutoMidiPlayer.WPF/AutoMidiPlayer.WPF.csproj b/AutoMidiPlayer.WPF/AutoMidiPlayer.WPF.csproj index ef71b5e..1567d92 100644 --- a/AutoMidiPlayer.WPF/AutoMidiPlayer.WPF.csproj +++ b/AutoMidiPlayer.WPF/AutoMidiPlayer.WPF.csproj @@ -24,7 +24,6 @@ - diff --git a/AutoMidiPlayer.WPF/Dialogs/BadMidiReadDialog/BadMidiReadView.xaml.cs b/AutoMidiPlayer.WPF/Dialogs/BadMidiReadDialog/BadMidiReadView.xaml.cs index f750b43..379a110 100644 --- a/AutoMidiPlayer.WPF/Dialogs/BadMidiReadDialog/BadMidiReadView.xaml.cs +++ b/AutoMidiPlayer.WPF/Dialogs/BadMidiReadDialog/BadMidiReadView.xaml.cs @@ -5,7 +5,6 @@ using System.Windows.Controls; using AutoMidiPlayer.Data; using AutoMidiPlayer.WPF.Helpers; -using Humanizer; using Melanchall.DryWetMidi.Common; using Melanchall.DryWetMidi.Core; using Wpf.Ui.Controls; diff --git a/AutoMidiPlayer.WPF/Dialogs/ErrorContentDialog/ErrorContentView.xaml.cs b/AutoMidiPlayer.WPF/Dialogs/ErrorContentDialog/ErrorContentView.xaml.cs index 7ab6bb5..4f603df 100644 --- a/AutoMidiPlayer.WPF/Dialogs/ErrorContentDialog/ErrorContentView.xaml.cs +++ b/AutoMidiPlayer.WPF/Dialogs/ErrorContentDialog/ErrorContentView.xaml.cs @@ -3,7 +3,6 @@ using System.Linq; using System.Threading.Tasks; using System.Windows.Controls; -using Humanizer; using AutoMidiPlayer.WPF.Helpers; using Wpf.Ui.Controls; diff --git a/AutoMidiPlayer.WPF/Helpers/StringExtensions.cs b/AutoMidiPlayer.WPF/Helpers/StringExtensions.cs new file mode 100644 index 0000000..d87086d --- /dev/null +++ b/AutoMidiPlayer.WPF/Helpers/StringExtensions.cs @@ -0,0 +1,15 @@ +using System.Text.RegularExpressions; + +namespace AutoMidiPlayer.WPF.Helpers; + +public static class StringExtensions +{ + public static string Humanize(this string input) + { + if (string.IsNullOrEmpty(input)) + return input; + + var humanized = Regex.Replace(input, "([a-z])([A-Z])", "$1 $2").ToLower(); + return char.ToUpper(humanized[0]) + humanized.Substring(1); + } +} \ No newline at end of file diff --git a/THIRD-PARTY-LICENSES.md b/THIRD-PARTY-LICENSES.md index 7dbb032..c098b53 100644 --- a/THIRD-PARTY-LICENSES.md +++ b/THIRD-PARTY-LICENSES.md @@ -141,44 +141,6 @@ This project is derived from: > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE > SOFTWARE. -# Humanizer - -> The MIT License (MIT) -> -> Copyright (c) .NET Foundation and Contributors -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. -> -> ============================================================================== -> -> Inflector (https://github.com/srkirkland/Inflector) -> The MIT License (MIT) -> Copyright (c) 2013 Scott Kirkland -> -> ============================================================================== -> -> ByteSize (https://github.com/omar/ByteSize) -> The MIT License (MIT) -> Copyright (c) 2013-2014 Omar Khudeira (http://omar.io) -> -> ============================================================================== - # JetBrains.Annotations > MIT License