mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
15 lines
No EOL
466 B
C#
15 lines
No EOL
466 B
C#
namespace FFMpegCore.Extend
|
|
{
|
|
internal static class StringExtensions
|
|
{
|
|
/// <summary>
|
|
/// Enclose string between quotes if contains an space character
|
|
/// </summary>
|
|
/// <param name="input">The input</param>
|
|
/// <returns>The enclosed string</returns>
|
|
public static string EncloseIfContainsSpace(this string input)
|
|
{
|
|
return input.Contains(" ") ? $"'{input}'" : input;
|
|
}
|
|
}
|
|
} |