Potentially extend maximum length

Thanks slendy
This commit is contained in:
Dagg 2022-09-10 11:22:28 -07:00
parent a5d7f69f90
commit 09744e826b

View file

@ -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;