mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
(m4_re_escape): Escape ?, ^, \, $ too.
This commit is contained in:
parent
2926779832
commit
1f45d61a00
@ -1318,10 +1318,10 @@ m4_defn([m4_cr_digits])dnl
|
||||
|
||||
# m4_re_escape(STRING)
|
||||
# --------------------
|
||||
# Escape BRE active characters in STRING.
|
||||
# Escape RE active characters in STRING.
|
||||
m4_define([m4_re_escape],
|
||||
[m4_bpatsubst([$1],
|
||||
[[][+*.]], [\\\&])])
|
||||
[[][*+.?\^$]], [\\\&])])
|
||||
|
||||
|
||||
# m4_re_string
|
||||
|
Loading…
Reference in New Issue
Block a user