Files
FileFlowsPlugins/VideoNodes/Helpers/GeneralHelper.cs
John Andrews a58aa49b3e FF-1338 - adding way to convert based on codec
FF-1337 - added ability to run comskip
2024-02-17 10:48:39 +13:00

17 lines
511 B
C#

namespace FileFlows.VideoNodes.Helpers;
/// <summary>
/// General helper
/// </summary>
public class GeneralHelper
{
/// <summary>
/// Checks if the input string represents a regular expression.
/// </summary>
/// <param name="input">The input string to check.</param>
/// <returns>True if the input is a regular expression, otherwise false.</returns>
public static bool IsRegex(string input)
{
return new[] { "?", "|", "^", "$", "*" }.Any(ch => input.Contains(ch));
}
}