Shell Recorder: Simplify function `regex_escape`
@@ -3,8 +3,8 @@ replace_newline_return () {
}
regex_escape () {
- sed 's/\\/\\\\/g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g' | sed 's/\./\\\./g' | sed 's/\*/\\\*/g' | sed 's/\?/\\\?/g' \
- | sed 's/(/\\\(/g' | sed 's/)/\\\)/g' | sed 's/"/\\"/g'
+ sed -e 's/\\/\\\\/g' -e 's/\[/\\\[/g' -e 's/\]/\\\]/g' -e 's/\./\\\./g' -e 's/\*/\\\*/g' -e 's/\?/\\\?/g' \
+ -e 's/(/\\\(/g' -e 's/)/\\\)/g' -e 's/"/\\"/g'
}
if [ -z "@USE_CMAKE_KDB_COMMAND@" ]; then
