Speaking of component name, could we try to sanitize the initial component name for git repo imports :
|
initialComponentName={gitURL.url.substring(gitURL.url.lastIndexOf('/') + 1)} |
so that they respect
|
validationMessage = OpenShiftItem.validateMatches( |
|
`Not a valid component name. |
|
Please use lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character`, |
|
name, |
|
); |
. Can be included in a separate PR.
(eg. https://github.com/openshift-evangelists/Wild-West-Frontend fails validation )
Originally posted by @rgrunber in #3127 (comment)
Speaking of component name, could we try to sanitize the initial component name for git repo imports :
vscode-openshift-tools/src/webview/create-component/pages/fromExistingGitRepo.tsx
Line 415 in 843dca5
so that they respect
vscode-openshift-tools/src/webview/common-ext/createComponentHelpers.ts
Lines 95 to 99 in 843dca5
(eg. https://github.com/openshift-evangelists/Wild-West-Frontend fails validation )
Originally posted by @rgrunber in #3127 (comment)