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
Recently, regex.escape() was changed to also escape spaces, because spaces are significant in VERBOSE patterns. However, escaping spaces is ugly when the escaped string is presented to a user for editing. Could you add another keyword argument to escape() to not escape spaces. So if the caller of escape() knows that the pattern is not going to be used with the VERBOSE flag, they can chosoe not to escape spaces.
The text was updated successfully, but these errors were encountered:
Original report by kovidgoyal (Bitbucket: kovidgoyal, GitHub: kovidgoyal).
Recently, regex.escape() was changed to also escape spaces, because spaces are significant in VERBOSE patterns. However, escaping spaces is ugly when the escaped string is presented to a user for editing. Could you add another keyword argument to escape() to not escape spaces. So if the caller of escape() knows that the pattern is not going to be used with the VERBOSE flag, they can chosoe not to escape spaces.
The text was updated successfully, but these errors were encountered: