Signed-off-by: Louis Chemineau <louis@chmn.me>
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Signed-off-by: Robin Appelman <robin@icewind.nl>