Skip to content

Commit

Permalink
fix #40, NNIDにドットが指定できない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
fetus-hina committed Jan 5, 2016
1 parent 3999622 commit 94d39da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/ProfileForm.php
Expand Up @@ -25,7 +25,7 @@ public function rules()
[['name'], 'required'],
[['name'], 'string', 'max' => 15],
[['nnid'], 'string', 'min' => 6, 'max' => 16],
[['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9_-]+$/'],
[['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9._-]+$/'],
[['twitter'], 'string', 'max' => 15],
[['twitter'], 'match', 'pattern' => '/^[a-zA-Z0-9_]+$/'],
[['ikanakama'], 'integer', 'min' => 1],
Expand Down
2 changes: 1 addition & 1 deletion models/User.php
Expand Up @@ -70,7 +70,7 @@ public function rules()
[['password'], 'string', 'max' => 255],
[['api_key'], 'string', 'max' => 43],
[['nnid'], 'string', 'min' => 6, 'max' => 16],
[['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9_-]{6,16}$/'],
[['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9._-]{6,16}$/'],
[['api_key'], 'unique'],
[['screen_name'], 'unique'],
[['screen_name', 'twitter'], 'match', 'pattern' => '/^[a-zA-Z0-9_]{1,15}$/'],
Expand Down

0 comments on commit 94d39da

Please sign in to comment.