lib/marvin/parsers/simple_parser.rb in Sutto-marvin-0.3.3 vs lib/marvin/parsers/simple_parser.rb in Sutto-marvin-0.3.4

- old
+ new

@@ -26,10 +26,10 @@ # type of prefix (be it a HostMask or a Server name). def self.extract_prefix(prefix_text) return if prefix_text.blank? prefix_text = prefix_text[1..-1] # Remove the leading : # I think I just vomitted in my mouth a little... - if prefix_text =~ /^([A-Za-z0-9\-\[\]\\\`\^\{\}]+)(\!\~?([^@]+))?(@(.*))?$/ + if prefix_text =~ /^([A-Za-z0-9\-\[\]\\\`\^\{\}\_]+)(\!\~?([^@]+))?(@(.*))?$/ prefix = Prefixes::HostMask.new($1, $3, $5) else prefix = Prefixes::Server.new(prefix_text.strip) end return prefix \ No newline at end of file