From cd56e8f9a80da5506222efba915b9041671946b6 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Tue, 18 Jun 2013 03:52:03 +1200 Subject: makemap.sed handling for direct output This handles funky newlines and trims trailing junk, albeit in a not particularly elegant way. --- public/js/comp/makemap.sed | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/comp/makemap.sed b/public/js/comp/makemap.sed index 561530b..e942fe6 100755 --- a/public/js/comp/makemap.sed +++ b/public/js/comp/makemap.sed @@ -4,8 +4,8 @@ var map = function(){\ var map = {};\ var maps = { -/^Loading Maps/,/^Maps Loaded/ { - s/^Loading Maps \[\([0-9]\+\)\/[0-9]\+\]: data\\\(.*\)\.gat/ "\1": "\2",/p; +/^.\?Loading Maps/,/^.\?Maps Loaded/ { + s/^.\?Loading Maps \[\([0-9]\+\)\/[0-9]\+\]: data\\\(.*\)\.gat.*/ "\1": "\2",/p; } $i\ };\ -- cgit v1.2.3-60-g2f50