Fix style issues found by new rubocop version
[chef.git] / cookbooks / nominatim / recipes / default.rb
index 6134c1d7674cc27d10d9fe744d731838ab9bea54..e8ca87f9c242526ebadf0bf0138dc069f809dc3c 100644 (file)
@@ -37,7 +37,7 @@ source_directory = "#{home_directory}/nominatim"
 email_errors = data_bag_item("accounts", "lonvia")["email"]
 
 database_cluster = node[:nominatim][:database][:cluster]
-database_version = database_cluster.sub(/\/.*/, "")
+database_version = database_cluster.sub(%r{/.*}, "")
 database_name = node[:nominatim][:database][:dbname]
 
 postgis_version = node[:nominatim][:database][:postgis]