You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,12 @@ This package comes with a bunch of scalars that are ready-to-use and just work o
24
24
25
25
### [Email](src/Email.php)
26
26
27
-
A RFC 5321 compliant email.
27
+
A [RFC 5321](https://tools.ietf.org/html/rfc5321) compliant email.
28
28
29
29
### [Mixed](src/Mixed.php)
30
30
31
-
Loose type that allows any value. Be careful when passing in large Int or Float literals,
32
-
as they may not be parsed correctly on the server side. Use String literals if you are
31
+
Loose type that allows any value. Be careful when passing in large `Int` or `Float` literals,
32
+
as they may not be parsed correctly on the server side. Use `String` literals if you are
33
33
dealing with really large numbers to be on the safe side.
34
34
35
35
## Advanced Scalars
@@ -49,7 +49,7 @@ use MLL\GraphQLScalars\Regex;
49
49
50
50
$hexValue = Regex::make(
51
51
'HexValue',
52
-
'A hexadecimal color is specified with: #RRGGBB, where RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color.',
52
+
'A hexadecimal color is specified with: `#RRGGBB`, where `RR` (red), `GG` (green) and `BB` (blue) are hexadecimal integers between `00` and `FF` specifying the intensity of the color.',
53
53
'/^#?([a-f0-9]{6}|[a-f0-9]{3})$/'
54
54
);
55
55
```
@@ -70,8 +70,8 @@ class HexValue extends Regex
70
70
* @var string
71
71
*/
72
72
public $description = <<<'DESCRIPTION'
73
-
A hexadecimal color is specified with: #RRGGBB, where RR (red), GG (green) and BB (blue)
74
-
are hexadecimal integers between 00 and FF specifying the intensity of the color.
73
+
A hexadecimal color is specified with: `#RRGGBB`, where `RR` (red), `GG` (green) and `BB` (blue)
74
+
are hexadecimal integers between `00` and `FF` specifying the intensity of the color.
75
75
DESCRIPTION;
76
76
77
77
public static function regex() : string
@@ -86,8 +86,8 @@ DESCRIPTION;
86
86
The `StringScalar` encapsulates all the boilerplate associated with creating a string-based Scalar type.
87
87
It does the proper string checking for you and let's you focus on the minimal logic that is specific to your use case.
88
88
89
-
All you have to specify is a function that checks if the given string is valid. Use the factory method
90
-
to generate an instance on the fly.
89
+
All you have to specify is a function that checks if the given string is valid.
90
+
Use the factory method `make`to generate an instance on the fly.
0 commit comments