[openstreetmap/openstreetmap-website] Replace deprecated String.prototype.substr() (PR #3462)
CommanderRoot
notifications at github.com
Sun Feb 20 21:11:51 UTC 2022
[String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated so we replace it with [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) which works similarily but isn't deprecated.
.substr() probably isn't going away anytime soon but the change is trivial so it doesn't hurt to do it.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3462
-- Commit Summary --
* Replace deprecated String.prototype.substr()
-- File Changes --
M app/assets/javascripts/embed.js.erb (2)
M app/assets/javascripts/index/query.js (4)
M app/assets/javascripts/osm.js.erb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3462.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3462.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3462
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3462 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220220/89a62c64/attachment.htm>
More information about the rails-dev
mailing list