]> git.openstreetmap.org Git - rails.git/commitdiff
Replace deprecated String.prototype.substr()
authorTobias Speicher <rootcommander@gmail.com>
Sun, 20 Feb 2022 21:11:11 +0000 (22:11 +0100)
committerTobias Speicher <rootcommander@gmail.com>
Sun, 20 Feb 2022 21:11:11 +0000 (22:11 +0100)
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 <rootcommander@gmail.com>

No differences found