From: Tom Hughes Date: Wed, 20 Feb 2019 21:47:41 +0000 (+0000) Subject: Anchor regular expression X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/9bedbf10f628d55144c7342cfc9195f5f436e746?ds=sidebyside Anchor regular expression --- diff --git a/cookbooks/planet/templates/default/apache-latest-planet-filename.erb b/cookbooks/planet/templates/default/apache-latest-planet-filename.erb index 967fa41e5..87fd926e3 100644 --- a/cookbooks/planet/templates/default/apache-latest-planet-filename.erb +++ b/cookbooks/planet/templates/default/apache-latest-planet-filename.erb @@ -15,7 +15,7 @@ while (my $path = ) my $file = abs_path("/store/planet${path}"); - if ($file && $file =~ m|/store/planet/| && -f $file) + if ($file && $file =~ m|^/store/planet/| && -f $file) { print "${file}\n"; }