Skip to content

Commit 4eb592a

Browse files
authored
Merge pull request #53 from jamesmoore/trim-whitespace-on-filenames
trim whitespace on filenames
2 parents e66bec8 + 3ecaad6 commit 4eb592a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChatGPTExport/Exporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private string GetFilename(Conversation conversation, string modifier, string ex
9595
var createtime = conversation.GetCreateTime();
9696
var value = $"{createtime:yyyy-MM-ddTHH-mm-ss} - {conversation.title}{(string.IsNullOrWhiteSpace(modifier) ? "" : $" - {modifier}")}";
9797
value = new string(value.Where(p => fileSystem.Path.GetInvalidFileNameChars().Contains(p) == false).ToArray());
98-
return value + extension;
98+
return value.Trim() + extension;
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)