From ac853b90e7e463a30d0ef3f5113a56ace8a3dd86 Mon Sep 17 00:00:00 2001 From: Jingchao Zhong <92573736+perryzjc@users.noreply.github.com> Date: Sat, 18 Nov 2023 18:25:46 -0800 Subject: [PATCH] Update regex to pass updated test --- detect_secrets/plugins/ip_public.py | 36 ++++++++++++----------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/detect_secrets/plugins/ip_public.py b/detect_secrets/plugins/ip_public.py index 941d2d2fd..86546b607 100644 --- a/detect_secrets/plugins/ip_public.py +++ b/detect_secrets/plugins/ip_public.py @@ -19,30 +19,24 @@ class IPPublicDetector(RegexBasedDetector): secret_type = 'Public IP (ipv4)' denylist_ipv4_address = r""" - # Negative lookbehind: Checks if preceding character is not a digit - (?