GetStandardizedExtension unit tests
This commit is contained in:
parent
68da9779da
commit
b42ff827d5
3 changed files with 25 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ namespace FileManager
|
|||
public static string GetStandardizedExtension(string extension)
|
||||
=> string.IsNullOrWhiteSpace(extension)
|
||||
? (extension ?? "")?.Trim()
|
||||
: '.' + extension.Trim('.');
|
||||
: '.' + extension.Trim().Trim('.');
|
||||
|
||||
/// <summary>
|
||||
/// Return position with correct number of leading zeros.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue