We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c8950 commit 8a5c486Copy full SHA for 8a5c486
lib/octocatalog-diff/catalog-util/builddir.rb
@@ -155,7 +155,7 @@ def install_fact_file(logger, options)
155
elsif options[:fact_file]
156
raise Errno::ENOENT, "Fact file #{options[:fact_file]} does not exist" unless File.file?(options[:fact_file])
157
fact_file_opts = { fact_file_string: File.read(options[:fact_file]) }
158
- fact_file_opts[:backend] = Regexp.last_match(1).to_sym if options[:fact_file] =~ /.{1,1000}\.(\w)*$/
+ fact_file_opts[:backend] = Regexp.last_match(1).to_sym if options[:fact_file] =~ /.{1,1000}\.(\w+)$/
159
OctocatalogDiff::Facts.new(fact_file_opts)
160
else
161
raise ArgumentError, 'No facts passed to "install_fact_file" method'
0 commit comments