From 62c0dd53527c293a2a856f707b3473e4285e7187 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 | 35 ++++++++++++----------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/detect_secrets/plugins/ip_public.py b/detect_secrets/plugins/ip_public.py index 941d2d2fd..91e0b88e1 100644 --- a/detect_secrets/plugins/ip_public.py +++ b/detect_secrets/plugins/ip_public.py @@ -19,28 +19,21 @@ class IPPublicDetector(RegexBasedDetector): secret_type = 'Public IP (ipv4)' denylist_ipv4_address = r""" - # Negative lookbehind: Checks if preceding character is not a digit - (?