diff options
Diffstat (limited to 'lib/chef/resource/windows_font.rb')
-rw-r--r-- | lib/chef/resource/windows_font.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_font.rb b/lib/chef/resource/windows_font.rb index a1f7fa153b..c1dceb3685 100644 --- a/lib/chef/resource/windows_font.rb +++ b/lib/chef/resource/windows_font.rb @@ -36,7 +36,7 @@ class Chef property :source, String, description: "A local filesystem path or URI to source the font file from.", - coerce: proc { |x| x =~ /^.:.*/ ? x.tr('\\', "/").gsub("//", "/") : x } + coerce: proc { |x| x.match?(/^.:.*/) ? x.tr('\\', "/").gsub("//", "/") : x } action :install do description "Install a font to the system fonts directory." |