mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
fix accidental substring matching for some cpu models
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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($"""
|
||||
|
||||
Reference in New Issue
Block a user