Commit d612096b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

From Andy yates: Allow for core database names

like "aspergillus_fumigatusa1163_core_5_58_1a"
(containing integers as part of the second part
of their names).
parent b83dc853
......@@ -1429,7 +1429,8 @@ sub load_registry_from_db {
if ( $2 eq $software_version ) {
$ontology_version = $2;
}
} elsif ( $db =~ /^([a-z]+_[a-z]+_[a-z]+(?:_\d+)?)_(\d+)_(\w+)/ ) {
} elsif ( $db =~ /^([a-z]+_[a-z0-9]+_[a-z]+(?:_\d+)?)_(\d+)_(\w+)/ )
{
if ( $2 eq $software_version ) {
$temp{$1} = $2 . "_" . $3;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment