Skip to content

Commit e09ff16

Browse files
committed
Update Generator.php
1 parent f7f4734 commit e09ff16

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/generators/routing/Generator.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,26 @@ abstract class Generator
3737
'byte' => '(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})',
3838
],
3939

40-
// Bolean formats
41-
42-
'boolean' => [
43-
'_' => 'true|false',
40+
'number' => [
41+
'_' => '-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?',
42+
'float' => '-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?',
43+
'double' => '-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?',
4444
],
4545

4646
// Integer formats
4747

4848
'integer' => [
4949
'_' => '-?[0-9]+',
50+
'int32' => '-?[0-9]+',
51+
'int64' => '-?[0-9]+',
5052
'auto-increment' => '[1-9][0-9]{0,}',
5153
],
54+
55+
// Bolean formats
56+
57+
'boolean' => [
58+
'_' => 'true|false',
59+
],
5260
];
5361

5462
/**

0 commit comments

Comments
 (0)