Skip to content

Commit 8a5c486

Browse files
committed
fixing a goof
1 parent 81c8950 commit 8a5c486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/catalog-util/builddir.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def install_fact_file(logger, options)
155155
elsif options[:fact_file]
156156
raise Errno::ENOENT, "Fact file #{options[:fact_file]} does not exist" unless File.file?(options[:fact_file])
157157
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)*$/
158+
fact_file_opts[:backend] = Regexp.last_match(1).to_sym if options[:fact_file] =~ /.{1,1000}\.(\w+)$/
159159
OctocatalogDiff::Facts.new(fact_file_opts)
160160
else
161161
raise ArgumentError, 'No facts passed to "install_fact_file" method'

0 commit comments

Comments
 (0)