Commit 46a39cef authored by Mikaël Salson's avatar Mikaël Salson
Browse files

should-to-tap.sh: { and } must also be protected in exact mode

parent 4045ed90
......@@ -166,7 +166,7 @@ while read line; do
"e")
# Exact: protect any character that may be part of
# a regex
pattern=$(sed -r 's/([^\\])(\.|\||\-|\+|\*|\[|\]|\(|\))/\1\\\2/g' <<< $pattern);;
pattern=$(sed -r 's/([^\\])(\.|\||\-|\+|\*|\[|\]|\(|\)|\{|\})/\1\\\2/g' <<< $pattern);;
esac
nb_hits=${nb_hits:1}
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment