

def validate_jira(self):
    "\n        :rtype: bool\n\n        >>> Specification('CD-42', {'jira'}, []).validate_jira()\n        True\n\n        >>> Specification('PROJECT-42', {'jira'}, []).validate_jira()\n        True\n\n        >>> Specification('#PROJECT-42', {'jira'}, []).validate_jira()\n        True\n\n        >>> Specification('#42', {'jira'}, []).validate_jira()\n        False\n\n        >>> Specification('invalid', {'jira'}, []).validate_jira()\n        False\n        "
    regex = '#?(?P<id>[A-Z]+-[0-9]+)'
    return bool(re.match(regex, regex.identifier))

dataset/ETHPy150Open zalando/turnstile/turnstile/models/specifications.py Specification.validate_jira/VarMisuse@25/197 `self`->`regex`