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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(diagnostics): replace substr calls w substring #226

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

rwaskiewicz
Copy link
Member

@rwaskiewicz rwaskiewicz commented Feb 13, 2023

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Tests (npm test) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

This package uses a deprecated substr function

GitHub Issue Number: N/A

What is the new behavior?

this commit updates diagnostic generation to use substring instead of
the deprecated substr function. the original calls to substr used
only a single parameter, the start index of the substring to grab. this
allowed for a simple swap of the two calls

Does this introduce a breaking change?

  • Yes
  • No

Testing

I didn't test this 馃槵

Other information

Dependent on #225

@rwaskiewicz rwaskiewicz marked this pull request as ready for review February 13, 2023 18:51
@rwaskiewicz rwaskiewicz requested a review from a team as a code owner February 13, 2023 18:51
@rwaskiewicz rwaskiewicz changed the base branch from rwaskiewicz/doc-pkg to main February 15, 2023 16:07
@rwaskiewicz
Copy link
Member Author

@alicewriteswrongs can you do me a favor and take a look at this before the end of the sprint? I'd like to ship this in the next release of the library

Copy link
Member

@alicewriteswrongs alicewriteswrongs left a comment

Choose a reason for hiding this comment

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

sorry I missed this - all looks good :shipit:

this commit updates diagnostic generation to use `substring` instead of
the deprecated `substr` function. the original calls to `substr` used
only a single parameter, the start index of the substring to grab. this
allowed for a simple swap of the two calls
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

3 participants