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

fix: fix formatting when add spacing at the beginning and/end #1672

Merged
merged 2 commits into from Feb 7, 2024

Conversation

KsAkira10
Copy link

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

I just realized that I didn't have a code covered by unit tests and identified a possible bug

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Comment on lines +12 to +15
?.trim()
?.replace(STRING_DECAMELIZE_REGEXP, '$1-$2')
?.toLowerCase()
?.replace(STRING_DASHERIZE_REGEXP, '-');
Copy link
Member

Choose a reason for hiding this comment

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

are we sure that the str parameter can be nil? 🤔 if yes, please add yet another test to cover this scenario

Copy link
Author

Choose a reason for hiding this comment

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

are we sure that the str parameter can be nil? 🤔 if yes, please add yet another test to cover this scenario

So I just checked into the source and I saw that all implements with default value ...but I just added more unit tests

@kamilmysliwiec kamilmysliwiec merged commit 8b908d6 into nestjs:master Feb 7, 2024
1 check passed
@kamilmysliwiec
Copy link
Member

lgtm

@KsAkira10 KsAkira10 deleted the fix/formatting branch February 8, 2024 04:38
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