|
@@ -50,17 +50,17 @@ end
|
|
def work(line)
|
|
def work(line)
|
|
#put_log "GOT LINE: #{line}"
|
|
#put_log "GOT LINE: #{line}"
|
|
|
|
|
|
- line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
|
|
|
|
|
|
|
|
fromto = ""
|
|
fromto = ""
|
|
from = ""
|
|
from = ""
|
|
cmd = ""
|
|
cmd = ""
|
|
payload = ""
|
|
payload = ""
|
|
|
|
|
|
- if not $& == nil
|
|
|
|
|
|
+ if line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
|
|
|
|
+
|
|
line = $1
|
|
line = $1
|
|
|
|
|
|
- if line =~ /^(from|to):([a-zA-Z_]+): (.+)/
|
|
|
|
|
|
+ if line =~ /^(from|to):([a-zA-Z\._]+): (.+)/
|
|
fromto = $1
|
|
fromto = $1
|
|
from = $2
|
|
from = $2
|
|
line = $3
|
|
line = $3
|