forked from zappa/Zappa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
get_best_match_zone()
to match by most matched components i…
…nstead of by length of domain (zappa#1193) * 🔧 improve `get_best_match_zone()` to match by most matched components instead of by length of domain. * ♻️ refactor multiple loops into single loop 🔧 add '.' to test_domain_name_match_component testcase HostedZones zone, 'Name'. * 🔧 variable name clarification. * 📝 add comments for clarification * ✅ add testcase where match is short and longer zone name comes first. 🔧 fix case where exact match is ignored over longest. * 🔥 remove unused import
- Loading branch information
Showing
2 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters