Skip to content

Commit

Permalink
处理 eq 判断时数字前方的“0”。
Browse files Browse the repository at this point in the history
  • Loading branch information
oldj committed Oct 13, 2012
1 parent 6f486a3 commit 5eb44f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bio.coffee
Expand Up @@ -52,7 +52,7 @@ BIO =

eq: (a, b) ->
# 等于
a == b
a.replace(/^0+/g, "") == b.replace(/^0+/g, "")

__carry: (na) ->
# 进位
Expand Down

0 comments on commit 5eb44f7

Please sign in to comment.