Skip to content

Commit

Permalink
#372 - Allow a slug to to start with a number
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Jun 19, 2020
1 parent 1da63a1 commit f1fab39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function _initialize(KObjectConfig $config)
'alpha' => '[A-Za-z]++',
'*alpha' => '[A-Za-z]+(,[A-Za-z]+)*',
'id' => '[0-9]++[-]++[0-9A-Za-z-]++',
'slug' => '[^0-9-][a-z-0-9]++',
'slug' => '(?![0-9]++-)[^-][0-9A-Za-z-]++',
'*' => '.+?',
'**' => '.++',
'' => '[^/\.]++',
Expand Down

0 comments on commit f1fab39

Please sign in to comment.