1
0
Fork 0

fix(new-design): Escape the escape character so it appears

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

View file

@ -107,7 +107,7 @@ export const getChoices = async () => {
await prompts({
type: 'text',
name: 'name',
message: 'What name would you like the design to have? 🏷️ ([a-z0-9_-] only)',
message: 'What name would you like the design to have? 🏷️ ([a-z0-9_\\-] only)',
validate: validateDesignName,
})
).name

View file

@ -85,7 +85,7 @@ async function addDesign() {
const { name } = await prompts({
type: 'text',
name: 'name',
message: 'What name would you like the design to have? ([a-z0-9_-] only)',
message: 'What name would you like the design to have? ([a-z0-9_\\-] only)',
validate: validateDesignName,
})