I´m using Py inquirer @ latest version. Python version is 3. I setup a test Programm. Just the basics and copy paste this from the project docu
import inquirer
questions = [
inquirer.Text('name', message="What's your name"),
inquirer.Text('surname', message="What's your surname"),
inquirer.Text('phone', message="What's your phone number",
validate=lambda _, x: re.match('\+?\d[\d ]+\d', x),
)
]
answers = inquirer.prompt(questions)
The first and second question working, the third one, with the validation not. There is completely no matter of the input, I always get the following error:
"220" is not a valid phone.
I googled a lot (maybe the wrong keywords), I tried to change the regex, but nothing helps.
Can someone help me ?