changeset 353:8e456ddb0324 misc

Fix an regexp.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 31 Oct 2017 22:08:54 +0200
parents b80107b8a493
children 286762fb5ded
files log2template.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/log2template.pl	Tue Oct 31 22:04:02 2017 +0200
+++ b/log2template.pl	Tue Oct 31 22:08:54 2017 +0200
@@ -260,7 +260,7 @@
       $$mob{"continent"} = $2;
       $$mob{"xc"} = $3;
       $$mob{"yc"} = $4;
-    } elsif ($s =~ /^You are in '.*?', which is on the continent of ([A-Z][a-z]+). \(Coordinates: (\d)+x, (\d)+y(; Global: \d+x, \d+y)?\)$/o) {
+    } elsif ($s =~ /^You are in '.*?', which is on the continent of ([A-Z][a-z]+). \(Coordinates: (\d+)x, (\d+)y(; Global: \d+x, \d+y)?\)$/o) {
       # Area, continent
       $$mob{"area"} = $1;
       $$mob{"continent"} = $1;