Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
web3-eth-iban code style fix
  • Loading branch information
loredanacirstea committed Mar 17, 2021
commit 1e9db074befbba498390db18d0caebb90459c1da
4 changes: 2 additions & 2 deletions packages/web3-eth-iban/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const iso13616Prepare = function (iban) {
iban = iban.toUpperCase();
iban = iban.substr(4) + iban.substr(0,4);

return iban.split('').map(function(n){
return iban.split('').map(function(n) {
const code = n.charCodeAt(0);
if (code >= A && code <= Z){
if (code >= A && code <= Z) {
// A = 10, B = 11, ... Z = 35
return code - A + 10;
} else {
Expand Down