From: Tobias Speicher Date: Sun, 20 Feb 2022 21:11:11 +0000 (+0100) Subject: Replace deprecated String.prototype.substr() X-Git-Tag: live~2259^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/be878df0978d5b51f7fbb72fca16f74c5708c818?ds=sidebyside;hp=be878df0978d5b51f7fbb72fca16f74c5708c818 Replace deprecated String.prototype.substr() String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated. Signed-off-by: Tobias Speicher ---