Skip to content

Commit 562ee9c

Browse files
Merge pull request github#1502 from snipe/master
Fixes parse error
2 parents 385ba70 + e384392 commit 562ee9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scripts/base36.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Base36Builder
4848
decode: (str) ->
4949
num = bigInt("0")
5050
power = bigInt(@base)
51-
for char, index in str.split(//).reverse()
51+
for char, index in str.split("").reverse()
5252
if (char_index = @alphabet.indexOf(char)) == -1
5353
throw new Error('Value passed is not a valid Base36 string.')
5454
num = num.plus(power.pow(index).multiply(char_index))

src/scripts/base58.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Base58Builder
4545

4646
decode: (str) ->
4747
num = 0
48-
for char, index in str.split(//).reverse()
48+
for char, index in str.split("").reverse()
4949
if (char_index = @alphabet.indexOf(char)) == -1
5050
throw new Error('Value passed is not a valid Base58 string.')
5151
num += char_index * Math.pow(@base, index)

0 commit comments

Comments
 (0)