lib/lookbook/entities/preview.rb in lookbook-1.4.3 vs lib/lookbook/entities/preview.rb in lookbook-1.4.4

- old
+ new

@@ -14,10 +14,10 @@ @file_path = Pathname(code_object.file) @base_directories = Engine.preview_paths cleaned_path = relative_file_path.to_s .gsub(/\/(component_preview|preview)(\..*)$/, "") - .gsub(/_component_preview(\..*)$/, "") + .gsub(/(_component_preview|_preview)(\..*)$/, "") @lookup_path = PathUtils.to_lookup_path(cleaned_path) end def examples