diff --git a/lib/importmap/packager.rb b/lib/importmap/packager.rb index 726ae25..237b9b6 100644 --- a/lib/importmap/packager.rb +++ b/lib/importmap/packager.rb @@ -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(/^(?[^:]*):[\s+]?["']?(?.*[^"'])["']?$/) hash[match_data[:option_name]] = cast_option_value(match_data[:option_value])