src/utils.js
function fromNobleUuid(uuid) {
	if (uuid.length !== 32) return uuid;
	return (
		uuid.substring(0, 8) +
		'-' +
		uuid.substring(8, 12) +
		'-' +
		uuid.substring(12, 16) +
		'-' +
		uuid.substring(16, 20) +
		'-' +
		uuid.substring(20)
	);
}
function fromNobleUuid(uuid) {
	if (uuid.length !== 32) return uuid;
	return (
		uuid.substring(0, 8) +
		'-' +
		uuid.substring(8, 12) +
		'-' +
		uuid.substring(12, 16) +
		'-' +
		uuid.substring(16, 20) +
		'-' +
		uuid.substring(20)
	);
}
function fromNobleUuid ( uuid ) { if ( uuid . length !== 32 ) return uuid ; return ( uuid . substring ( 0 , 8 ) + '-' + uuid . substring ( 8 , 12 ) + '-' + uuid . substring ( 12 , 16 ) + '-' + uuid . substring ( 16 , 20 ) + '-' + uuid . substring ( 20 ) ) ; }
00000001-1212-efde-1523-785feabcd124
00000001 - 1212 - efde - 1523 - 785feabcd124