* @param {string} hexString * @returns
(hexString)
| 271 | * @returns |
| 272 | */ |
| 273 | function toPositiveHex(hexString) { |
| 274 | let mostSiginficativeHexAsInt = parseInt(hexString[0], 16) |
| 275 | if (mostSiginficativeHexAsInt < 8) { |
| 276 | return hexString |
| 277 | } |
| 278 | |
| 279 | mostSiginficativeHexAsInt -= 8 |
| 280 | return mostSiginficativeHexAsInt.toString() + hexString.substring(1) |
| 281 | } |
| 282 | |
| 283 | // the next is an edit of the selfsigned function reduced to the function necessary for webtransport |
| 284 | /** |
no outgoing calls
no test coverage detected