regex_escape: support POSIX basic regex (#50327)

This commit is contained in:
James Cassell 2019-03-07 08:51:19 -05:00 committed by Sam Doran
commit e55e8fe2c4
3 changed files with 31 additions and 3 deletions

View file

@ -0,0 +1,8 @@
minor_changes:
- |
regex_escape - added re_type option to enable escaping POSIX BRE chars
This distinction is necessary because escaping non-special chars such as
'(' or '{' turns them into special chars, the opposite of what is intended
by using regex_escape on strings being passed as a Basic Regular
Expression.