Skip to content
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

refactor: replace deprecated String.prototype.substr() #2187

Merged
merged 1 commit into from
Mar 23, 2022
Merged

refactor: replace deprecated String.prototype.substr() #2187

merged 1 commit into from
Mar 23, 2022

Conversation

CommanderRoot
Copy link
Contributor

Description

String.prototype.substr() is deprecated so we replace it with String.prototype.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.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

@netlify
Copy link

netlify bot commented Mar 22, 2022

👷 Deploy request for hoppscotch pending review.
Visit the deploys page to approve it

🔨 Explore the source changes: 69017ba

Copy link
Member

@AndrewBastin AndrewBastin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@AndrewBastin AndrewBastin merged commit 755ee33 into hoppscotch:main Mar 23, 2022
@AndrewBastin
Copy link
Member

Thank you for your quick PR @CommanderRoot ! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants