RatAttack: fixed RATSIGNAL regex
Apparently `^` can be part of both CMDR names and IRC nicks.
This commit is contained in:
parent
1135efd761
commit
9db6785ef1
2 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,8 @@
|
||||||
|
|
||||||
* Made case list thread safe. Probably only ever impacted my own specific setup,
|
* Made case list thread safe. Probably only ever impacted my own specific setup,
|
||||||
but still a huge 🤦.
|
but still a huge 🤦.
|
||||||
|
* Apparently `^` can be part of both CMDR names and IRC nicks (fixed RATSIGNAL
|
||||||
|
regex).
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace RatAttack
|
||||||
private static readonly Version VERSION = new ("6.3.2");
|
private static readonly Version VERSION = new ("6.3.2");
|
||||||
|
|
||||||
private static readonly Regex RatsignalRegex = new (
|
private static readonly Regex RatsignalRegex = new (
|
||||||
@"^RATSIGNAL Case #(?<number>\d+) (?<platform>(PC|Xbox|Playstation))(?<oxygen> \(Code Red\))?(?<odyssey> \(Odyssey\))? – CMDR (?<cmdr>.+) – System: (None|u\u200bnknown system|""(?<system>.+)"" \((?<systemInfo>([a-zA-Z0-9\s\(\)\-/]*(~?[0-9,\.]+ LY (""[a-zA-Z\-]+"" of|from) [a-zA-Z0-9\s\*\-]+)?( \([a-zA-Z\s]+\))?|Not found in galaxy database|Invalid system name))\)(?<permit> \(((?<permitName>.*) )?Permit Required\))?) – Language: (?<language>[a-zA-z0-9\x7f-\xff\-\(\)&,\s\.]+)( – Nick: (?<nick>[a-zA-Z0-9_\[\]\-]+))? \((PC|XB|PS)_SIGNAL\)\v*$");
|
@"^RATSIGNAL Case #(?<number>\d+) (?<platform>(PC|Xbox|Playstation))(?<oxygen> \(Code Red\))?(?<odyssey> \(Odyssey\))? – CMDR (?<cmdr>.+) – System: (None|u\u200bnknown system|""(?<system>.+)"" \((?<systemInfo>([a-zA-Z0-9\s\(\)\-/]*(~?[0-9,\.]+ LY (""[a-zA-Z\-]+"" of|from) [a-zA-Z0-9\s\*\-]+)?( \([a-zA-Z\s]+\))?|Not found in galaxy database|Invalid system name))\)(?<permit> \(((?<permitName>.*) )?Permit Required\))?) – Language: (?<language>[a-zA-z0-9\x7f-\xff\-\(\)&,\s\.]+)( – Nick: (?<nick>[a-zA-Z0-9_\[\]\-\^]+))? \((PC|XB|PS)_SIGNAL\)\v*$");
|
||||||
|
|
||||||
private static PipeServer<Ratsignal>? ratsignalPipe;
|
private static PipeServer<Ratsignal>? ratsignalPipe;
|
||||||
private static VoiceAttackLog? log;
|
private static VoiceAttackLog? log;
|
||||||
|
|
Loading…
Reference in a new issue