lib/redmine_cli/helpers/input.rb
#
# #ask with :limited_to set to url regexp.
# TODO: make good regexp
#
ask with :limited_to set to url regexp.
TODO: make good regexp
ask with : limited_to set to url regexp . TODO : make good regexp
def ask_url(text, params = {})
        params[:limited_to] = /\S*/
        url = ask(text, params).strip
        url = "http://#{url}" unless url =~ %r{\Ahttps?://}
        url
      end
def ask_url ( text , params = { } ) params [ :limited_to ] = / \S * / url = ask ( text , params ) . strip url = "http://#{url}" unless url =~ %r{ \A https?:// } url end
ask with :limited_to set to url regexp.
ask with : limited_to set to url regexp .
text
params