Debian Codegraph @

changelogs/fragments/87420-is_mac-trailing-newline.yml

raw
1 minor_changes:
2 - is_mac - add a ``strict`` keyword-only argument that anchors the validation
3 regex with ``\Z`` instead of ``$``, rejecting a MAC address with a trailing
4 newline. The default (``strict=False``) preserves the historical behavior
5 (https://github.com/ansible/ansible/pull/87420).