From d042b1a276572a519259312236268dcc0db6232d Mon Sep 17 00:00:00 2001 From: sakulstra Date: Thu, 2 Nov 2023 13:12:30 +0100 Subject: [PATCH] fix: add correct error --- generator/prompts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/prompts.ts b/generator/prompts.ts index 231b89019..129bed84c 100644 --- a/generator/prompts.ts +++ b/generator/prompts.ts @@ -140,7 +140,7 @@ export async function percentInput( 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 );