File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class Base36Builder
48
48
decode : (str ) ->
49
49
num = bigInt (" 0" )
50
50
power = bigInt (@base )
51
- for char, index in str .split (// ).reverse ()
51
+ for char, index in str .split (" " ).reverse ()
52
52
if (char_index = @alphabet .indexOf (char)) == - 1
53
53
throw new Error (' Value passed is not a valid Base36 string.' )
54
54
num = num .plus (power .pow (index).multiply (char_index))
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class Base58Builder
45
45
46
46
decode : (str ) ->
47
47
num = 0
48
- for char, index in str .split (// ).reverse ()
48
+ for char, index in str .split (" " ).reverse ()
49
49
if (char_index = @alphabet .indexOf (char)) == - 1
50
50
throw new Error (' Value passed is not a valid Base58 string.' )
51
51
num += char_index * Math .pow (@base , index)
You can’t perform that action at this time.
0 commit comments