Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into issue/OSOE-838
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed May 14, 2024
2 parents 8ae2c0b + dadc625 commit e548468
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lombiq.Tests.UI/Extensions/HtmlValidationResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ private static IEnumerable<JsonHtmlValidationError> ParseOutput(string output)
{
// In some cases the output is too large and is not a valid JSON anymore. In this case we need to fix it.
// tracking issue: https://github.com/atata-framework/atata-htmlvalidation/issues/9
if (output.Trim().StartsWith('[') && !output.Trim().EndsWith(']'))
int index = output.IndexOf(",\"source\":", StringComparison.Ordinal);
if (index != -1)
{
output += "\"}]";
output = output[..index];
output += "}]";
}

var document = JsonDocument.Parse(output);
Expand Down

0 comments on commit e548468

Please sign in to comment.