From f3648b6386537f4aae13fee0e80ad6888692d006 Mon Sep 17 00:00:00 2001 From: HerrKnarz <40741234+HerrKnarz@users.noreply.github.com> Date: Tue, 21 Mar 2023 22:35:55 +0100 Subject: [PATCH] Hotfix release for Link Utilities --- Common/KNARZhelper/StringHelper.cs | 7 ++++++- Generic/LinkUtilities/Properties/AssemblyInfo.cs | 4 ++-- Generic/LinkUtilities/extension.yaml | 2 +- Manifest/HerrKnarz_LinkUtilities.yaml | 8 ++++++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Common/KNARZhelper/StringHelper.cs b/Common/KNARZhelper/StringHelper.cs index 5685bd3eb..21d8667e9 100644 --- a/Common/KNARZhelper/StringHelper.cs +++ b/Common/KNARZhelper/StringHelper.cs @@ -117,7 +117,12 @@ public static string RemoveEditionSuffix(this string str) regExOptions |= RegexOptions.Compiled; Regex ignoredEndWordsRegex = new Regex(@"(\s*[:-])?(\s+([a-z']+\s+(edition|cut)|hd|collection|remaster(ed)?|remake|ultimate|anthology|game of the))+$", regExOptions | RegexOptions.IgnoreCase); Match match = ignoredEndWordsRegex.Match(str); - return str.Remove(match.Index).Trim(); + + if (match.Success) + { + return str.Remove(match.Index).Trim(); + } + return str; } } } \ No newline at end of file diff --git a/Generic/LinkUtilities/Properties/AssemblyInfo.cs b/Generic/LinkUtilities/Properties/AssemblyInfo.cs index de4af29d0..4729c5db5 100644 --- a/Generic/LinkUtilities/Properties/AssemblyInfo.cs +++ b/Generic/LinkUtilities/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.0.0")] -[assembly: AssemblyFileVersion("2.3.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("2.4.0.0")] +[assembly: AssemblyFileVersion("2.4.0.0")] \ No newline at end of file diff --git a/Generic/LinkUtilities/extension.yaml b/Generic/LinkUtilities/extension.yaml index eb1c4f46d..1e8322546 100644 --- a/Generic/LinkUtilities/extension.yaml +++ b/Generic/LinkUtilities/extension.yaml @@ -1,7 +1,7 @@ Id: LinkUtilties_f692b4bb-238d-4080-ae76-4aaefde6f7a1 Name: Link Utilities Author: HerrKnarz -Version: 2.3 +Version: 2.4 Module: LinkUtilities.dll Type: GenericPlugin Icon: icon.png \ No newline at end of file diff --git a/Manifest/HerrKnarz_LinkUtilities.yaml b/Manifest/HerrKnarz_LinkUtilities.yaml index 14c1340fd..342234010 100644 --- a/Manifest/HerrKnarz_LinkUtilities.yaml +++ b/Manifest/HerrKnarz_LinkUtilities.yaml @@ -1,5 +1,13 @@ AddonId: LinkUtilties_f692b4bb-238d-4080-ae76-4aaefde6f7a1 Packages: + - Version: 2.4 + RequiredApiVersion: 6.8.0 + ReleaseDate: 2023-03-21 + PackageUrl: https://github.com/HerrKnarz/Playnite-Extensions/releases/download/2023-03-21/LinkUtilties_f692b4bb-238d-4080-ae76-4aaefde6f7a1_2_4.pext + Changelog: + - fixed bug that caused links to games without edition suffix not being found. + - 100% translation to Spanish (thx to darklinkpower) + - partial translation to Portuguese, Brazilian (thx SweetAnthony) - Version: 2.3 RequiredApiVersion: 6.8.0 ReleaseDate: 2023-03-18