Skip to content

Commit

Permalink
fix(test): XamlHelper unable to process xmlns'd attribute (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed May 16, 2023
1 parent e358da0 commit 0aafec1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Uno.Toolkit.RuntimeTests/Helpers/XamlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ internal static class XamlHelper
{
var match = xmlns.Key == string.Empty
? NonXmlnsTagRegex.IsMatch(xaml)
: xaml.Contains($"<{xmlns.Key}:");
// naively match the xmlns-prefix regardless if it is quoted,
// since false positive doesn't matter.
: xaml.Contains($"{xmlns.Key}:");
if (match)
{
xmlnses.Add(xmlns.Key, xmlns.Value);
Expand Down

0 comments on commit 0aafec1

Please sign in to comment.