RatAttack: fixed RATSIGNAL parsing for system information containing /
e.g. “Herbig AE/BE star”
This commit is contained in:
parent
36abf8b53b
commit
2715fa2a48
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
* No longer trying to get nearest CMDR for the new “Unconfirmed” system info.
|
* No longer trying to get nearest CMDR for the new “Unconfirmed” system info.
|
||||||
* Fixed RATSIGNAL parsing for locales containing `&`.
|
* Fixed RATSIGNAL parsing for locales containing `&`.
|
||||||
|
* Fixed RATSIGNAL parsing for system information containing `/` (e.g. “Herbig
|
||||||
|
AE/BE star”).
|
||||||
|
|
||||||
## SpanshAttack 7.2.1
|
## SpanshAttack 7.2.1
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace RatAttack
|
||||||
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
|
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
|
||||||
|
|
||||||
private static readonly Regex RatsignalRegex = new Regex(
|
private static readonly Regex RatsignalRegex = new Regex(
|
||||||
@"^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 VoiceAttackLog Log
|
private static VoiceAttackLog Log
|
||||||
|
|
Loading…
Reference in a new issue