diff --git a/CHANGELOG.md b/CHANGELOG.md index d499b9f..6f00bd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Fixed RATSIGNAL parsing for “unknown system” (which contains a zero-width space …) * Fixed RATSIGNAL parsing for procedually generated landmark systems. +* Fixed RATSIGNAL parsing landmark systems with alternate names. ### Changed diff --git a/plugins/RatAttack/RatAttack.cs b/plugins/RatAttack/RatAttack.cs index a6db1e6..8efec73 100644 --- a/plugins/RatAttack/RatAttack.cs +++ b/plugins/RatAttack/RatAttack.cs @@ -20,7 +20,7 @@ namespace RatAttack private static readonly Regex RatsignalRegex = new Regex( // Yes. There is a zero-width space in “unknown system”. Probably // just so it doesn’t ping Mr. unknown in Fuelrats IRC m) - @"^RATSIGNAL - CMDR (?.+) - Reported System: (None|u\u200bnknown system|""(?.+)""(\x0314)? \((?([a-zA-Z0-9\s\(\)\-~]*([0-9,\.]+ LY (""[a-zA-Z\-]+"" of|from) [a-zA-Z0-9\s\*\-]+)?|Not found in galaxy database|Invalid system name))\)(\x03)?(? \x037\(((?.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?(NOT )?OK)\x03? - Language: (?[a-zA-z0-9\x7f-\xff\-\(\)\s]+)( - IRC Nick (?[a-zA-Z0-9_\[\]\-]+))? \(\x02Case #(?\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$" + @"^RATSIGNAL - CMDR (?.+) - Reported System: (None|u\u200bnknown system|""(?.+)""(\x0314)? \((?([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))\)(\x03)?(? \x037\(((?.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?(NOT )?OK)\x03? - Language: (?[a-zA-z0-9\x7f-\xff\-\(\)\s]+)( - IRC Nick (?[a-zA-Z0-9_\[\]\-]+))? \(\x02Case #(?\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$" ); private static VoiceAttackLog Log