diff --git a/cdist/conf/type/__acl/explorer/acl_is b/cdist/conf/type/__acl/explorer/acl_is
index 70e18116..1c64ffb3 100755
--- a/cdist/conf/type/__acl/explorer/acl_is
+++ b/cdist/conf/type/__acl/explorer/acl_is
@@ -28,5 +28,5 @@ fi
 
 getfacl -E "/$__object_id" 2>/dev/null \
     | grep -E '^(default:)?(user|group|(mask|other):):[^:]' \
-    | sed -r 's/#.+$//' \
+    | sed -r 's/\s*#.+$//' \
     || true