diff options
author | Tim Smith <tsmith@chef.io> | 2020-03-02 10:13:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 10:13:56 -0800 |
commit | 1078234c43f14a073ef10720d7d2329e1c14c5f2 (patch) | |
tree | ec8e91ab567bd909380af8387c3cde60e2bb985c | |
parent | bf27c1135474bc9106b132d2758ae1493128ccb7 (diff) | |
parent | 7d10b4987e087e38008b631517c54e7550509108 (diff) | |
download | chef-1078234c43f14a073ef10720d7d2329e1c14c5f2.tar.gz |
Merge pull request #9429 from joerg/fix_path_extension_gsub
Fix gsub so only file endings of .rb and .json are removed.
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb index 807d5e0155..a8f130f308 100644 --- a/lib/chef/chef_fs/chef_fs_data_store.rb +++ b/lib/chef/chef_fs/chef_fs_data_store.rb @@ -775,7 +775,7 @@ class Chef end elsif path.length == 2 && path[0] != "cookbooks" - path[1] = path[1].gsub(/\.(rb|json)/, "") + path[1] = path[1].gsub(/\.(rb|json)$/, "") end path |