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

Sanitize the folder name into a valid component name #3152

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

datho7561
Copy link
Contributor

Some test cases I handled:

  • salamance---salamance-.-salamance- -> salamance-salamance-salamance
  • 1234SALAMANCE..---SALAMANCE-.-salamance- -> salamance-salamance-salamance
  • 1234567....---- -> component

Fixes #3150

Signed-off-by: David Thompson davthomp@redhat.com

Some test cases I handled:
- `salamance---salamance-.-salamance-` ->
  `salamance-salamance-salamance`
- `1234SALAMANCE..---SALAMANCE-.-salamance-` ->
  `salamance-salamance-salamance`
- `1234567....----` -> `component`

Fixes redhat-developer#3150

Signed-off-by: David Thompson <davthomp@redhat.com>
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (29e98fa) 32.97% compared to head (b9a592b) 32.97%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3152   +/-   ##
=======================================
  Coverage   32.97%   32.97%           
=======================================
  Files          75       75           
  Lines        5265     5265           
  Branches     1000     1000           
=======================================
  Hits         1736     1736           
  Misses       3529     3529           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mohitsuman mohitsuman left a comment

Choose a reason for hiding this comment

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

lgtm

@mohitsuman mohitsuman merged commit df9a58b into redhat-developer:main Aug 31, 2023
5 checks passed
@datho7561 datho7561 deleted the 3150-sanitize-name branch August 31, 2023 21:16
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.

Sanitize suggested name when opening "Create Component" from context menu
2 participants