Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static bool TryConvertDictionaryKey(VerifyJsonWriter writer, object original, [N
return true;
}

result = ApplyScrubbers.ApplyForPropertyValue(stringValue.AsSpan(), writer.settings, counter).ToString();
result = ApplyScrubbers.ApplyForPropertyValue(stringValue.AsSpan(), writer.settings, counter);

return true;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Verify/Serialization/Scrubbers/ApplyScrubbers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public static void ApplyForExtension(string extension, StringBuilder target, Ver
target.FixNewlines();
}

public static CharSpan ApplyForPropertyValue(CharSpan value, VerifySettings settings, Counter counter)
public static string ApplyForPropertyValue(CharSpan value, VerifySettings settings, Counter counter)
{
var builder = new StringBuilder(value.Length);
builder.Append(value);
ApplyForPropertyValue(settings, counter, builder);
return builder.AsSpan();
return builder.ToString();
}

public static void ApplyForPropertyValue(VerifySettings settings, Counter counter, StringBuilder builder)
Expand Down
4 changes: 2 additions & 2 deletions src/Verify/Verifier/InnerVerifier_Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ string ConvertValue(string value)
return result;
}

return ApplyScrubbers.ApplyForPropertyValue(span, settings, counter).ToString();
return ApplyScrubbers.ApplyForPropertyValue(span, settings, counter);
}

void ScrubAttributes(XElement node, SerializationSettings serialization)
Expand Down Expand Up @@ -136,7 +136,7 @@ void ScrubAttributes(XElement node, SerializationSettings serialization)
}
else
{
attribute.Value = ApplyScrubbers.ApplyForPropertyValue(span, settings, counter).ToString();
attribute.Value = ApplyScrubbers.ApplyForPropertyValue(span, settings, counter);
}
}
}
Expand Down
Loading