From b05c98a2403023c70d3d0aa52c59c50f3fd648b7 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sun, 3 Sep 2023 15:01:23 +1000 Subject: Improved OCR searching --- Services/OcrService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/OcrService.cs b/Services/OcrService.cs index 743f8f6..82167c1 100644 --- a/Services/OcrService.cs +++ b/Services/OcrService.cs @@ -11,7 +11,7 @@ public class OcrService : IHostedService { private readonly TimeSpan ProcessInterval = TimeSpan.FromMinutes(30); private readonly TimeSpan StartupDelay = TimeSpan.FromSeconds(30); - private readonly Regex SpaceRegex = new(@"[\s\n\r]+", RegexOptions.Compiled); + private readonly Regex SpaceRegex = new(@"[^0-9a-z]+", RegexOptions.Compiled); private Task? task; private CancellationTokenSource cts = new(); -- cgit v1.3