Skip to content

Commit

Permalink
fix: add correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 2, 2023
1 parent d9e5b42 commit d042b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export async function percentInput<T extends boolean>(
validate: disableKeepCurrent ? isNumber : isNumberOrKeepCurrent,
...(disableKeepCurrent ? {} : {default: ENGINE_FLAGS.KEEP_CURRENT}),
pattern: /^[0-9]*\.?[0-9]*$/,
patternError: 'Only full numbers are allowed',
patternError: 'Only decimal numbers are allowed (e.g. 1.1)',
},
opts
);
Expand Down

0 comments on commit d042b1a

Please sign in to comment.