We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86df1f1 commit 9f3ea0cCopy full SHA for 9f3ea0c
src/Files.Shared/Helpers/FileExtensionHelpers.cs
@@ -386,6 +386,16 @@ public static bool IsTextFile(string? fileExtensionToCheck)
386
return HasExtension(fileExtensionToCheck, ".txt");
387
}
388
389
+ /// <summary>
390
+ /// Checks if the file extension represents an SVG file.
391
+ /// </summary>
392
+ /// <param name="fileExtensionToCheck">The file extension to check</param>
393
+ /// <returns><c>true</c> if the <c>filePathToCheck</c> is an SVG file; otherwise, <c>false</c>.</returns>
394
+ public static bool IsSvgFile(string? fileExtensionToCheck)
395
+ {
396
+ return HasExtension(fileExtensionToCheck, ".svg");
397
+ }
398
+
399
/// <summary>
400
/// Check if the file is signable.
401
/// </summary>
0 commit comments