]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/router.js
Fix #2402
[rails.git] / app / assets / javascripts / router.js
index 7bd2aabb981abf7548b4270989249aa98135ff9e..c397a44ec4de3eeeb0e338aceaeca557f3a6865c 100644 (file)
    move the map without the hash changing.
  */
 OSM.Router = function (map, rts) {
-  var escapeRegExp  = /[-{}[\]+?.,\\^$|#\s]/g;
+  var escapeRegExp = /[-{}[\]+?.,\\^$|#\s]/g;
   var optionalParam = /\((.*?)\)/g;
-  var namedParam    = /(\(\?)?:\w+/g;
-  var splatParam    = /\*\w+/g;
+  var namedParam = /(\(\?)?:\w+/g;
+  var splatParam = /\*\w+/g;
 
   function Route(path, controller) {
     var regexp = new RegExp("^" +