Skip to content

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

Merged
rwaskiewicz merged 1 commit intomainfrom
rwaskiewicz/rm-substr
Mar 13, 2023
Merged

refactor(diagnostics): replace substr calls w substring#226
rwaskiewicz merged 1 commit intomainfrom
rwaskiewicz/rm-substr

Conversation

@rwaskiewicz
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@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
@rwaskiewicz rwaskiewicz force-pushed the rwaskiewicz/rm-substr branch from b1a3a18 to 65a89d4 Compare March 13, 2023 16:58
@rwaskiewicz rwaskiewicz merged commit f07c3a7 into main Mar 13, 2023
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.

3 participants