From 1dd714d5d3236c2b53b02c161c78ecf44ac0a217 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Fri, 30 Jul 2021 19:44:31 +0000 Subject: [PATCH] [map] Update old stop hashes to new format (trams too) --- map.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map.js b/map.js index 29d3d8b..2cf2272 100644 --- a/map.js +++ b/map.js @@ -946,8 +946,8 @@ return false; }, _updateOld: function() { - if(window.location.hash.match(/^#!sb[0-9]{1,3}$/)) { - this.go('sb' + window.location.hash.substr(4).padStart(4, '0')); + if(window.location.hash.match(/^#!s[bt][0-9]{1,3}$/)) { + this.go('s' + window.location.hash.charAt(3) + window.location.hash.substr(4).padStart(4, '0')); } else if(window.location.hash.match(/^#![bt][0-9]{3}$/)) { this.go('v' + window.location.hash.substr(2)); } else if(window.location.hash.match(/^#![RHrh][A-Za-z][0-9]{3}$/)) { -- Gitblit v1.9.1