fixed the hostname regex default tip
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Tue, 07 Jan 2014 12:04:43 +0100
changeset 19 cab2cd677dd5
parent 18 d6685a768d82
fixed the hostname regex
ftpipe
--- a/ftpipe	Fri Apr 29 16:48:46 2011 +0200
+++ b/ftpipe	Tue Jan 07 12:04:43 2014 +0100
@@ -60,7 +60,7 @@
 sub parse_url($) {
     $_[0] =~ m{^ftp://
 	    (?:(?<user>.*?)(?::(?<pass>.*))?@)?
-	    (?<host>[a-z\d_\.]+)/
+	    (?<host>[a-z\d\.-]+)/
 	    (?<path>.*)}x;
     my %r = %+;