Mercurial > hg > octave-shane > gnulib-hg
diff lib/regex-quote.c @ 14409:ee532a615968
regex-quote: Fix creation of POSIX extended regular expressions.
* lib/regex-quote.c (ere_special): Add grouping and alternation
operators.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 Mar 2011 14:25:49 +0100 |
parents | 97fc9a21a8fb |
children | 0a972f366396 |
line wrap: on
line diff
--- a/lib/regex-quote.c +++ b/lib/regex-quote.c @@ -29,7 +29,7 @@ static const char bre_special[] = "$^.*[]\\"; /* Characters that are special in an ERE. */ -static const char ere_special[] = "$^.*[]\\+?()"; +static const char ere_special[] = "$^.*[]\\+?{}()|"; size_t regex_quote_length (const char *string, int cflags)