Skip to content

Commit

Permalink
Just use the optional character option
Browse files Browse the repository at this point in the history
  • Loading branch information
vietqhoang committed Oct 24, 2024
1 parent e36fe93 commit 9709923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/importmap/packager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def pin_options_for_package(package)

return {} if raw_options.blank?

raw_options[:pin_options].split(/,\s|,/).each_with_object({}) do |option, hash|
raw_options[:pin_options].split(/,\s?/).each_with_object({}) do |option, hash|
match_data = option.match(/^(?<option_name>[^:]*):[\s+]?["']?(?<option_value>.*[^"'])["']?$/)

hash[match_data[:option_name]] = cast_option_value(match_data[:option_value])
Expand Down

0 comments on commit 9709923

Please sign in to comment.