We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40ddbc commit c723b72Copy full SHA for c723b72
index.js
@@ -12,8 +12,8 @@ function encode (address) {
12
var byte = checksum[i]
13
var ha = address.charAt(i * 2)
14
var hb = address.charAt(i * 2 + 1)
15
- ret += (byte & 0xf0) > 0x80 ? ha.toUpperCase() : ha
16
- ret += (byte & 0x0f) > 0x08 ? hb.toUpperCase() : hb
+ ret += (byte & 0xf0) >= 0x80 ? ha.toUpperCase() : ha
+ ret += (byte & 0x0f) >= 0x08 ? hb.toUpperCase() : hb
17
}
18
19
return ret
0 commit comments