fix accidental substring matching for some cpu models

This commit is contained in:
13xforever
2025-07-14 18:00:22 +05:00
parent efee69b7ed
commit f8d638b276
2 changed files with 2 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ i5-7300HQ
; generic
; "Ryzen 1000 - 2000 6c/12t or worse"
; 1xxx or 2xxx with 1-9 or 10-12 threads
Ryzen [12]\d{3} \b([1-9]|1[0-2])\sThreads
Ryzen [12]\d{3} ([1-9]|1[0-2])\sThreads
; Any 4c/4t CPU
4\sThreads

View File

@@ -65,7 +65,7 @@ public class CpuTierListGenerator: IIncrementalGenerator
}
tierMap.Add((line, currentTier));
line = line.Replace(" ", ".*");
line = line.Replace(" ", @"\b.*\b");
// todo: use generated regex when it's possible https://github.com/dotnet/roslyn/discussions/48358
/*
result.AppendLine($"""