# frozen_string_literal: true require_relative "../lib/tty-prompt" prompt = TTY::Prompt.new prompt.ask('What is your username?') do |q| q.validate(/^[^\.]+\.[^\.]+/) end