Merge pull request #6198 from lindsayzhou/fix-dns-netzner-error-regexp

fix regex of matching hetzner dns api error responses
This commit is contained in:
neil authored and GitHub committed 2025-03-23 21:07:24 +01:00
commit a16ccf40c2
1 file changed
+1 -1
Regular → Executable
+1 -1
View File
@@ -212,7 +212,7 @@ _get_root() {
_response_has_error() {
unset _response_error
err_part="$(echo "$response" | _egrep_o '"error":{[^}]*}')"
err_part="$(echo "$response" | _egrep_o '"error":\{[^\}]*\}')"
if [ -n "$err_part" ]; then
err_code=$(echo "$err_part" | _egrep_o '"code":[0-9]+' | cut -d : -f 2)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.