Skip to content

Commit

Permalink
handle escaped words
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Aug 24, 2023
1 parent 7f5e6ab commit e8e0d2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions IsIdentifiable/Reporting/Reports/FailureStoreReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Data;
using System.IO.Abstractions;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -194,6 +195,13 @@ public static IEnumerable<Failure> Deserialize(IFileInfo oldFile, Action<int> lo
if (row.ProblemValue.Substring(part.Offset, part.Word.Length) == part.Word)
continue;

var encodedPartWord = WebUtility.HtmlEncode(part.Word);
if (row.ProblemValue.Substring(part.Offset, encodedPartWord.Length) == encodedPartWord)
{
part.Word = encodedPartWord;
continue;
}

try
{
FixupOffsets(row, part);
Expand Down

0 comments on commit e8e0d2b

Please sign in to comment.