lib/lookbook/support/utils/path_utils.rb in lookbook-2.0.0 vs lib/lookbook/support/utils/path_utils.rb in lookbook-2.0.1

- old
+ new

@@ -12,14 +12,14 @@ directory_path = nil if directory_path.start_with?(".") file_name = File.basename(path).split(".").first segments = [*directory_path&.split("/"), file_name].compact - stripped_segments = segments.map! do |segment| + segments.map! do |segment| PriorityPrefixParser.call(segment).last.tr("-", "_") end - to_path(stripped_segments) + to_path(segments) end def to_path(*args) args.flatten.compact.map(&:to_s).join("/") end