Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/compiler/crystal/command/format.cr
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class Crystal::Command
private def normalize_paths(paths)
path_start = ".#{File::SEPARATOR}"
paths.map do |path|
path = path_start + path unless path.starts_with?(path_start)
unless path.starts_with?(path_start) || path.starts_with?(File::SEPARATOR)
path = path_start + path
end
path.rstrip(File::SEPARATOR)
end
end
Expand Down