]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/query.js
Stretch changeset links in history lists
[rails.git] / app / assets / javascripts / index / query.js
index b64bccd6464eddd6ee0397f53aa0b67b60575f4e..4b58e6f935b4d513974e0d522de118de707cdb29 100644 (file)
@@ -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;
         }