Skip to content

Commit

Permalink
More playing with the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lancew committed Jan 19, 2021
1 parent ff966fd commit 39cb6dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/vwjl_admin.pm
Expand Up @@ -181,11 +181,13 @@ get '/database' => sub {

};

my $file_migration_level;
my @file_list = $inf->get_migration_files;
$file_list[-1] =~ /^(\d{3})/;

my $file_migration_level;
$file_migration_level = $1 if $1;
if ($1) {
$file_migration_level = $1 if $1;
}

template 'admin/database' => {
users => $users,
Expand Down

0 comments on commit 39cb6dc

Please sign in to comment.