Commit 1a6305c9 authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #236 from tohojo/regexp-escape

Add missing escape in regular expression.
parents bdbf323f 32dfc387
...@@ -1726,7 +1726,7 @@ issue() { ...@@ -1726,7 +1726,7 @@ issue() {
fi fi
if [ "$status" = "invalid" ] ; then if [ "$status" = "invalid" ] ; then
error="$(echo $response | tr -d "\r\n" | egrep -o '"error":{[^}]*}')" error="$(echo $response | tr -d "\r\n" | egrep -o '"error":\{[^}]*}')"
_debug2 error "$error" _debug2 error "$error"
errordetail="$(echo $error | grep -o '"detail": *"[^"]*"' | cut -d '"' -f 4)" errordetail="$(echo $error | grep -o '"detail": *"[^"]*"' | cut -d '"' -f 4)"
_debug2 errordetail "$errordetail" _debug2 errordetail "$errordetail"
......
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