Deprecated use of substr in googleTranslate.ts
There is a deprecated use of substr() in /apps/meteor/app/autotranslate/server/googleTranslate.ts that I found while doing a code review for a college class.
It isn't necessarily a bug or vulnerability in the code, not a new feature, but perhaps a code improvement.
The use of substr is in line 134 and 181, which I believe would be easily updated to slice(). I would volunteer to update this if the maintainers would like this to be updated.
I think this is you.
https://forums.rocket.chat/t/contributing-but-not-a-bug-or-vulnerability/20975
I will refer this to the team but it will probably be handled internally. Someone will let you know.
Is anyone currently working on this issue? If not, may I take it?
Is anyone currently working on this issue? If not, may I take it?
I will refer this to the team but it will probably be handled internally. Someone will let you know. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you want to give it a go with a PR, please do jpulattie. Will be nice =)
Actually, the use of substr() is in various other files too, so I think we should replace it everywhere else too. Edit: Referenced in PR #34120