Merge pull request #827 from PierreBastiani/user_input-quality_of_life

check for authorise 'y' without trailing space
pull/993/head
Richard Beales 2023-04-12 19:36:58 +01:00 committed by GitHub
commit 0528aacfb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ while True:
flush=True)
while True:
console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL)
if console_input.lower() == "y":
if console_input.lower().rstrip() == "y":
user_input = "GENERATE NEXT COMMAND JSON"
break
elif console_input.lower().startswith("y -"):