fix(new-design): Correct or/and
This commit is contained in:
parent
c61de2da13
commit
eb0662fa08
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ export const checkNodeVersion = () => {
|
|||
const validateDesignName = (name) => {
|
||||
if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true
|
||||
else
|
||||
return ' 🙈 Please use only lowercase letters, digits, underscores, and hyphens. Names must start with a lowercase letter or digit. 🤷'
|
||||
return ' 🙈 Please use only lowercase letters, digits, underscores, or hyphens. Names must start with a lowercase letter or digit. 🤷'
|
||||
}
|
||||
|
||||
// Gets user input to figure out what to do
|
||||
|
|
|
@ -225,7 +225,7 @@ function validateDesignName(name) {
|
|||
|
||||
if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true
|
||||
else
|
||||
return ' 🙈 Please use only lowercase letters, digits, underscores, and hyphens. Names must start with a lowercase letter or digit. 🤷'
|
||||
return ' 🙈 Please use only lowercase letters, digits, underscores, or hyphens. Names must start with a lowercase letter or digit. 🤷'
|
||||
}
|
||||
|
||||
function validatePluginName(name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue