From 09744e826b83d74a02dec0715c817f863601fbe9 Mon Sep 17 00:00:00 2001 From: Dagg Date: Sat, 10 Sep 2022 11:22:28 -0700 Subject: [PATCH] Potentially extend maximum length Thanks slendy --- UnionPatcher/Patcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnionPatcher/Patcher.cs b/UnionPatcher/Patcher.cs index 7a3ab0c..08f3f94 100644 --- a/UnionPatcher/Patcher.cs +++ b/UnionPatcher/Patcher.cs @@ -50,7 +50,7 @@ public static class Patcher { // Find a string including http or https and LITTLEBIGPLANETPS3_XML or LITTLEBIGPLANETPSP_XML, // then match any additional NULL characters to dynamically gague the maximum length on a per-title basis // without a hardcoded array of known server URLs - MatchCollection urls = Regex.Matches(dataAsString, "http?[^\x00]*?LITTLEBIGPLANETPS(3|P)_XML\x00"); + MatchCollection urls = Regex.Matches(dataAsString, "http?[^\x00]*?LITTLEBIGPLANETPS(3|P)_XML\x00*"); foreach(Match urlMatch in urls) { string url = urlMatch.Value;