diff options
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/uris.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/mixin/uris.rb b/lib/chef/mixin/uris.rb index d0ce052ef6..6c1ae793e2 100644 --- a/lib/chef/mixin/uris.rb +++ b/lib/chef/mixin/uris.rb @@ -21,6 +21,9 @@ require 'uri' class Chef module Mixin module Uris + # uri_scheme? returns true if the string starts with + # scheme:// + # For example, it will match http://foo.bar.com def uri_scheme?(source) # From open-uri !!(%r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ source) |