We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36706c0 commit ac32e39Copy full SHA for ac32e39
1 file changed
src/main/java/mil/nga/crs/common/Units.java
@@ -160,7 +160,11 @@ public enum Units {
160
private static final Map<String, Units> nameTypes = new HashMap<>();
161
static {
162
for (Units type : values()) {
163
- nameTypes.put(type.getName().toLowerCase(), type);
+ String lowercase = type.getName().toLowerCase();
164
+ nameTypes.put(lowercase, type);
165
+ if (lowercase.contains("metre")) {
166
+ nameTypes.put(lowercase.replaceAll("metre", "meter"), type);
167
+ }
168
}
169
170
0 commit comments