Locale improvement

This commit is contained in:
Joshua Granick
2018-05-31 22:30:23 -07:00
parent 17a0f8a681
commit 8d7eda2792

View File

@@ -116,6 +116,9 @@ abstract Locale(String) from String to String {
if (index > -1) {
var dashIndex = this.indexOf ("-");
if (dashIndex > -1 && dashIndex < index) index = dashIndex;
return this.substring (0, index);
}