-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecated use of substr in googleTranslate.ts #34007
Comments
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? |
|
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. |
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.
The text was updated successfully, but these errors were encountered: