mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-04-02 08:12:47 +01:00
* Reuse IMAGE_REGISTRY_REGEX for docker_image validation Replace the monolithic regex in docker_image validator with a function-based approach that reuses get_registry_from_image() from docker.utils for robust registry detection. This properly handles domains, IPv4/IPv6 addresses, ports, and localhost while still rejecting tags (managed separately by the add-on system). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Address review feedback: reorder checks for efficiency Check falsy value before isinstance, and empty path before tag check, as suggested in PR review. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3.8 KiB
3.8 KiB