You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which incurs the glob->regex translation inside GitIgnorePattern.__init__ which in turn calls RegexPattern.__init__ which automatically compiles the regex.
for the simple case of just wanting to convert a glob into a non-compiled regex string, it'd be great to have a utility function/method that could both be used inside GitIgnorePattern.__init__ and outside as part of the public API.
The text was updated successfully, but these errors were encountered:
currently, the way to get a regex string for a given gitignore-style glob is:
which incurs the glob->regex translation inside
GitIgnorePattern.__init__
which in turn callsRegexPattern.__init__
which automatically compiles the regex.for the simple case of just wanting to convert a glob into a non-compiled regex string, it'd be great to have a utility function/method that could both be used inside
GitIgnorePattern.__init__
and outside as part of the public API.The text was updated successfully, but these errors were encountered: