1
0
Fork 0

fix(new-design): Correct or/and

This commit is contained in:
Benjamin Fan 2023-05-26 21:00:26 -07:00
parent c61de2da13
commit eb0662fa08
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ export const checkNodeVersion = () => {
const validateDesignName = (name) => { const validateDesignName = (name) => {
if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true
else 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 // Gets user input to figure out what to do

View file

@ -225,7 +225,7 @@ function validateDesignName(name) {
if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true if (/^([a-z0-9][a-z0-9_\-]*)$/.test(name)) return true
else 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) { function validatePluginName(name) {