Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Fix getZoneIDForEndpoint to properly calculate the longest match #62

Merged
merged 1 commit into from
Jan 12, 2017
Merged

Fix getZoneIDForEndpoint to properly calculate the longest match #62

merged 1 commit into from
Jan 12, 2017

Conversation

ankon
Copy link
Contributor

@ankon ankon commented Jan 12, 2017

The function was trying to find the longest match, but then confused the matching zoneID with the matching
zoneName. As zoneIDs are all of the same length it would pick the last zone that had a name longer than this
standard length (or the first zone, if there was never any long zone).

The function was trying to find the longest match, but then confused the matching zoneID with the matching
zoneName. As zoneIDs are all of the same length it would pick the last zone that had a name longer than this
standard length (or the first zone, if there was never any long zone).
@ideahitme
Copy link
Contributor

good catch! thanks a lot for the great contribution ;)

@ideahitme
Copy link
Contributor

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants