Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ymh199478 opened this issue Nov 20, 2019 · 0 comments

Comments

@ymh199478
Copy link
Contributor

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant