lib/augury/cli.rb in augury-1.2.0 vs lib/augury/cli.rb in augury-2.0.0

- old
+ new

@@ -84,10 +84,12 @@ }, ) config_path = File.expand_path(ENV.fetch('AUGURY_CFG_PATH', '~/.augury.yml')) if File.file?(config_path) - config_options = Thor::CoreExt::HashWithIndifferentAccess.new(YAML.load_file(config_path) || {}) + config_options = Thor::CoreExt::HashWithIndifferentAccess.new( + YAML.load_file(config_path, permitted_classes: [Regexp]) || {}, + ) defaults = defaults.merge(config_options) end # Enforce implied options defaults[:links] = true if original_options[:remove_links] || defaults[:remove_links]