From f1868071e787b0a7535788657a736b0e706799e8 Mon Sep 17 00:00:00 2001 From: Andrew Yates <ayates@ebi.ac.uk> Date: Thu, 19 Jan 2012 17:00:31 +0000 Subject: [PATCH] Adding an optional trailing / as per RFC for URLs flagged up by John Marshall --- modules/Bio/EnsEMBL/Registry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm index 19db72b167..00caeb6b21 100644 --- a/modules/Bio/EnsEMBL/Registry.pm +++ b/modules/Bio/EnsEMBL/Registry.pm @@ -1391,7 +1391,7 @@ sub change_access{ sub load_registry_from_url { my ( $self, $url, $verbose, $no_cache ) = @_; - if ( $url =~ /^mysql\:\/\/([^\@]+\@)?([^\:\/]+)(\:\d+)?(\/\d+)?$/x ) { + if ( $url =~ /^mysql\:\/\/([^\@]+\@)?([^\:\/]+)(\:\d+)?(\/\d+)?\/?$/x ) { my $user_pass = $1; my $host = $2; my $port = $3; -- GitLab