From bdb7fd18d86adbb5777f710764af01bec66ae329 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 26 Nov 2023 18:48:13 +0100 Subject: [PATCH] backport of BMECat 2005 reader fix for quirky xml namespaces --- BMECat.net/BMECatReader12.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMECat.net/BMECatReader12.cs b/BMECat.net/BMECatReader12.cs index cad5a9a..e2734cc 100644 --- a/BMECat.net/BMECatReader12.cs +++ b/BMECat.net/BMECatReader12.cs @@ -47,7 +47,7 @@ internal async static Task LoadAsync(Stream inputStream, BMECatE inputStream.Read(firstPartOfBuffer, 0, 1024); string firstPartString = System.Text.Encoding.UTF8.GetString(firstPartOfBuffer); - if (!firstPartString.Contains("xmlns")) + if (!firstPartString.Contains("xmlns=")) { string pattern = ""; string replacement = @"";