(deviceCode: string)
| 25 | }; |
| 26 | |
| 27 | export const getMacAddressFromDeviceCode = (deviceCode: string): string => { |
| 28 | // add colons to the device code |
| 29 | return deviceCode.substring(0, 2) + ":" + deviceCode.substring(2, 4) + ":" + |
| 30 | deviceCode.substring(4, 6) + ":" + deviceCode.substring(6, 8) + ":" + |
| 31 | deviceCode.substring(8, 10) + ":" + deviceCode.substring(10, 12); |
| 32 | }; |
| 33 | |
| 34 | export const getPersonalityImageSrc = (title: string) => { |
| 35 | return `/personality/${title.toLowerCase().replace(/\s+/g, "_")}.jpeg`; |
nothing calls this directly
no outgoing calls
no test coverage detected