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

Validation student id #5

Open
munisystem opened this issue May 29, 2016 · 1 comment
Open

Validation student id #5

munisystem opened this issue May 29, 2016 · 1 comment

Comments

@munisystem
Copy link
Contributor

WHY

システムコード・サービスコードが一致した NfcF カードが存在した場合、student id 以外のものが登録されてしまう。

WHAT

Add validation student id.
[0-9]{2}[A-Z]{2}[0-9]{3} (example 12FI001) or [0-9]{2}[A-Z]{3}[0-9]{2} (12FMI01)

@nshiba
Copy link
Member

nshiba commented May 30, 2016

ちなみにまだデータの取得しかしてなくて学籍番号へんな感じになってるので、先に整形も必要かな

↓こんな感じになってる(これも正規表現でいけると思うけど)
0116FMI120000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants