mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated. Signed-off-by: Tobias Speicher <rootcommander@gmail.com> Co-authored-by: Jarek Radosz <jradosz@gmail.com>