diff --git a/.githooks/pre-commit b/.githooks/pre-commit
index cfd5a557e627be23bc99018d1982314e5c2aeb8f..b5975f0886faa4d654c04415bdcdb5dbf875747b 100755
--- a/.githooks/pre-commit
+++ b/.githooks/pre-commit
@@ -103,7 +103,7 @@ echo "SUCCESS: URL detection stage."
 
 ### IP address detection stage
 # This is pretty basic regex matching, but it's a start.
-IP_REGEX='[^:alpha:\-/][0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
+IP_REGEX='[^a-zA-ZäöÜÄÖÜß/\\\-][0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
 ${GREP_CMD} ${GREP_EXCLUDES} -e "${IP_REGEX}" "${REPOPATH}" | grep -v "127.0.0"
 if [[ ${?} -eq 0 ]]; then
 	echo "ERROR: found IP address."