From c503318a1f98e5a58ce7ce629b756244840bb413 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Mon, 1 Mar 2010 07:15:35 +0000 Subject: [PATCH] updated --- linkmap/map.cgi | 3 +-- linkmap/map.pl | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/linkmap/map.cgi b/linkmap/map.cgi index 27f2701..ab4690b 100755 --- a/linkmap/map.cgi +++ b/linkmap/map.cgi @@ -1,8 +1,7 @@ #!/usr/bin/perl $PERL = "/usr/bin/perl"; -#$LINKMAP_DIR = "/var/www/fonts.jp/chise_linkmap"; -$LINKMAP_DIR = "/var/www/chise_linkmap"; +$LINKMAP_DIR = "/var/www/fonts.jp/chise_linkmap"; use CGI; $cgi = new CGI; diff --git a/linkmap/map.pl b/linkmap/map.pl index 8a0a143..cb888a6 100755 --- a/linkmap/map.pl +++ b/linkmap/map.pl @@ -199,11 +199,11 @@ seek FH, 0, 0; $i = 0; foreach(){ if($i == 1){ - m/points=\"[0-9]+,[0-9]+ ([0-9]+),([0-9]+) [0-9]+,[0-9]+ ([0-9]+),([0-9]+) /; - print FH2 "\n"; + m/points=\"[0-9.-]+,[0-9.-]+ ([0-9.-]+),([0-9.-]+) [0-9.-]+,[0-9.-]+ ([0-9.-]+),([0-9.-]+) /; + print FH2 "\n"; $i = 0; } - elsif(m/^(2{0,1}[0-9A-F]{4})<\/title>\n$/){ + elsif(m/^<g id=\"node[0-9]+\" class=\"node\"><title>(2?[0-9A-F]{4})<\/title>\n$/){ $target = $1; $i = 1; } -- 1.7.10.4