summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();