From: Christian Weiske Date: Fri, 21 May 2010 06:54:35 +0000 (+0200) Subject: ignore whitespace X-Git-Url: https://git.cweiske.de/psist.git/commitdiff_plain/HEAD?ds=sidebyside ignore whitespace --- diff --git a/Psist.pm b/Psist.pm index 8ef7239..21b3300 100644 --- a/Psist.pm +++ b/Psist.pm @@ -80,10 +80,10 @@ sub load_config print "loading contacts...\n" unless $self->{silent}; open(CONFIGXML, $self->{profile} . "/accounts.xml"); while($row = ) { - if($row =~ /(.*?)<\/name>/) { + if($row =~ /]*>(.*?)<\/name>/) { $nick = $1; } - if($row =~ /(.*?)<\/jid>/) { + if($row =~ /]*>(.*?)<\/jid>/) { if(length($1) == 0) { next; }