From 8f9bfea00493797425389c796ff705dc634e5bf0 Mon Sep 17 00:00:00 2001 From: Maxim Krouk <40476363+maximkrouk@users.noreply.github.com> Date: Sat, 30 Jan 2021 16:13:19 +0300 Subject: [PATCH] fix: Location.nameExcludingExtension removes dots from filenames --- Sources/Files.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Files.swift b/Sources/Files.swift index 830f1ba..0cc718b 100644 --- a/Sources/Files.swift +++ b/Sources/Files.swift @@ -76,7 +76,7 @@ public extension Location { var nameExcludingExtension: String { let components = name.split(separator: ".") guard components.count > 1 else { return name } - return components.dropLast().joined() + return components.dropLast().joined(separator: ".") } /// The file extension of the item at the location.