# encoding: utf-8

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new

answer = prompt.ask('Password?', echo: false) do |q|
  q.validate(/^[^\.]+\.[^\.]+/)
end

#puts answer

# encoding: utf-8

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new

answer = prompt.ask('Password?', echo: false) do |q|
  q.validate(/^[^\.]+\.[^\.]+/)
end

puts "Password: #{answer}"

Change to show returend value
Change to show returend value
