X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79447e75497601444a9d4de25220f24a609d2780..2f6eebcd970d5f595f1c66359fe2322b9dedaa55:/app/assets/javascripts/index/query.js diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index b64bccd64..4b58e6f93 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -103,8 +103,8 @@ OSM.Query = function (map) { value = tags[key]; if (prefixes[key]) { - var first = value.substr(0, 1).toUpperCase(), - rest = value.substr(1).replace(/_/g, " "); + var first = value.slice(0, 1).toUpperCase(), + rest = value.slice(1).replace(/_/g, " "); return first + rest; }