def _does_string_pass_simple_jndi_regex()

in src/jndi_deobfuscate/jndi_deobfuscate.py [0:0]


def _does_string_pass_simple_jndi_regex(input_string: str) -> bool:
    """Returns True/False if string contains at least one JNDI match, based on a simple regex"""
    result = re.search(SIMPLE_JNDI_REGEX_PATTERN, input_string)
    if result:
        logger.debug(f"String passes simple JNDI regex: `{input_string}`")
        return True
    else:
        logger.debug(f"String does not pass simple JNDI regex: `{input_string}`")
        return False