summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/file_pattern.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-10-22 12:15:33 -0700
committerTim Smith <tsmith84@gmail.com>2021-10-22 12:15:33 -0700
commitc8c5b3b41e42c43117256798094f95d3412029bb (patch)
tree46cef0c9c6bae1bbb0b914a0492408436af4be34 /lib/chef/chef_fs/file_pattern.rb
parent19c40fe13fe61ea7e5aff0fa17e8627100ef075c (diff)
downloadchef-c8c5b3b41e42c43117256798094f95d3412029bb.tar.gz
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/chef_fs/file_pattern.rb')
-rw-r--r--lib/chef/chef_fs/file_pattern.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_pattern.rb b/lib/chef/chef_fs/file_pattern.rb
index 7e7a58e312..0aad1987e9 100644
--- a/lib/chef/chef_fs/file_pattern.rb
+++ b/lib/chef/chef_fs/file_pattern.rb
@@ -276,7 +276,7 @@ class Chef
regexp << ".*"
when "*"
exact = nil
- regexp << '[^\/]*'
+ regexp << "[^\\/]*"
when "?"
exact = nil
regexp << "."