fix(environment-selection): Update environment selection
fix(environment-selection): Update environment selection

Once an environment has been found, we should stop searching for environments. I had an issue where I had:

staging: staging.domain.com
production: domain.com

When browsing on staging, it matched staging but then also matched production because "domain.com" was found in the hostname "staging.domain.com". I believe that line 140 should check for string equality rather than contains, which would alleviate this. However, adding in the return statement leaves this control up to the user of this plugin because you can set the ordering of the environments to get around it.
Vheissu/Aurelia-Configuration,JeroenVinke/Aurelia-Configuration,Vheissu/Aurelia-Configuration,JoshMcCullough/Aurelia-Configuration