fix(new-design): Escape the escape character so it appears
This commit is contained in:
parent
eb0662fa08
commit
f280da1eaf
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ export const getChoices = async () => {
|
||||||
await prompts({
|
await prompts({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
name: 'name',
|
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,
|
validate: validateDesignName,
|
||||||
})
|
})
|
||||||
).name
|
).name
|
||||||
|
|
|
@ -85,7 +85,7 @@ async function addDesign() {
|
||||||
const { name } = await prompts({
|
const { name } = await prompts({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
name: 'name',
|
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,
|
validate: validateDesignName,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue