summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-03 15:01:23 +1000
committerJake Mannens <jake@asger.xyz>2023-09-03 15:01:23 +1000
commitb05c98a2403023c70d3d0aa52c59c50f3fd648b7 (patch)
treeb4a0489b986b73653d48cb37cf38dd75699a29b8
parentfa0d6155665b42ca34fe26172c6f88d63ea735e4 (diff)
Improved OCR searching
-rw-r--r--Services/OcrService.cs2
1 files changed, 1 insertions, 1 deletions
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();