Core icon indicating copy to clipboard operation
Core copied to clipboard

[Feature] Suggested added Glob method to get the regular expression of glob

Open ymh199478 opened this issue 4 years ago • 0 comments

Glob implements glob(3) style match.

/// <summary>
/// Returns a regexp which is the equivalent of the glob pattern.
/// </summary>
/// <param name="pattern">The regex pattern.</param>
/// <param name="strictLeadingDot">Is it strictly required not to start with a dot.</param>
/// <param name="strictWildcardSlash">Is it wildcards are strictly required to not allow wildcards slash.</param>
/// <returns>The glob pattern.</returns>
public static string Glob(string pattern, bool strictLeadingDot = true, bool strictWildcardSlash = true)

ymh199478 avatar Nov 20 '19 04:11 ymh199478