jed/locale — pull request #7 by benurb (2013-03-25 16:38:05+00:00)
Title: Best method does not return "real" best match

Example code:
```javascript
var langSupported = new locale.Locales(['de', 'en', 'fr']);
var langHeader = new locale.Locales('de_DE'); // de_DE is returned for example from german IE 10
var lang = langHeader.best(langSupported);
```
If I understand that correctly lang should be 'de', because it's the best match. But instead of that the default locale ('en') is returned. Maybe my understanding is wrong, but it seems logical to me to return 'de' in that case, because 'de' is a better match for 'de_DE' than 'en'.
I attached a pull request, but I'm rather new to coffeescript and not entirely sure it works as designed currently and my fix is a bad fix. Maybe you can clarify that :smile: