Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有奖征集 bug:isValidAddr() 正则有缺陷,会误判 #7

Closed
cssmagic opened this issue Jul 2, 2018 · 3 comments
Closed

有奖征集 bug:isValidAddr() 正则有缺陷,会误判 #7

cssmagic opened this issue Jul 2, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@cssmagic
Copy link
Member

cssmagic commented Jul 2, 2018

微信网友 “风” 在群里报了一个 bug:

1470833213


第一笔奖金(0.5 NAS)已发出!

@cssmagic cssmagic changed the title bug 有奖征集 bug:isValidAddr() 正则有缺陷,会误判 Jul 2, 2018
@cssmagic cssmagic added the bug Something isn't working label Jul 2, 2018
@cssmagic
Copy link
Member Author

cssmagic commented Jul 2, 2018

需要根据官方 SDK 的算法来判断地址的合法性。正则判断有缺限。

Neb.js isValidAddress()
https://nebulasio.github.io/neb.js/Account.html

@cssmagic
Copy link
Member Author

cssmagic commented Sep 3, 2018

在完整实现之前,先简单修了一下正则表达式: d0582eb

@cssmagic
Copy link
Member Author

cssmagic commented Oct 7, 2018

短期内不打算实现完整版。这个 issue 先关闭。

@cssmagic cssmagic closed this as completed Oct 7, 2018
@cssmagic cssmagic mentioned this issue Oct 7, 2018
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant