aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-06-19 22:35:59 +0300
committerArnold D. Robbins <arnold@skeeve.com>2019-06-19 22:35:59 +0300
commitd5a252444627be4d98cd6b49b948f159512952bf (patch)
tree8396e83cef7260351d299b3ced693011918c2ac6 /re.c
parent395fc520934d5f01589ca4c966f3c9e9bb1203fd (diff)
parent69f851227e35c5aa31f89306bf37369b3acad483 (diff)
downloadegawk-d5a252444627be4d98cd6b49b948f159512952bf.tar.gz
egawk-d5a252444627be4d98cd6b49b948f159512952bf.tar.bz2
egawk-d5a252444627be4d98cd6b49b948f159512952bf.zip
Merge branch 'gawk-5.0-stable'
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/re.c b/re.c
index 174f54f8..210be068 100644
--- a/re.c
+++ b/re.c
@@ -107,7 +107,9 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal)
}
const char *ok_to_escape;
- if (do_traditional)
+ if (do_posix)
+ ok_to_escape = "{}()|*+?.^$\\[]/-";
+ else if (do_traditional)
ok_to_escape = "()|*+?.^$\\[]/-";
else
ok_to_escape = "<>`'BywWsS{}()|*+?.^$\\[]/-";