Merge pull request #236 from tohojo/regexp-escape

Add missing escape in regular expression.
This commit is contained in:
neil 2016-07-09 18:35:50 +08:00 committed by GitHub
commit 1a6305c93f

View File

@ -1726,7 +1726,7 @@ issue() {
fi
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"
errordetail="$(echo $error | grep -o '"detail": *"[^"]*"' | cut -d '"' -f 4)"
_debug2 errordetail "$errordetail"