Convert GPS to uppercase in attribute name (#9124)

This commit is contained in:
Philip Allgaier 2021-05-07 11:14:03 +02:00 committed by GitHub
parent a94f85a100
commit abcdd60a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,7 @@ export function formatAttributeName(value: string): string {
.replace(/_/g, " ")
.replace(/\bid\b/g, "ID")
.replace(/\bip\b/g, "IP")
.replace(/\bmac\b/g, "MAC");
.replace(/\bmac\b/g, "MAC")
.replace(/\bgps\b/g, "GPS");
return value.charAt(0).toUpperCase() + value.slice(1);
}