Make more readable documentation of Regex class

This commit is contained in:
Meritoo
2019-08-27 20:23:28 +02:00
parent cc06cdde6f
commit 0afcf9843e

View File

@@ -17,17 +17,19 @@ File: `src/Utilities/Regex.php`
- `string $value` - Value that should be transformed to slug - `string $value` - Value that should be transformed to slug
##### Example 1 ##### Examples
1)
- value: non-scalar or `null` - value: non-scalar or `null`
- result: `false` - result: `false`
##### Example 2 2)
- value: `""` (an empty string) - value: `""` (an empty string)
- result: `""` (an empty string) - result: `""` (an empty string)
##### Example 3 3)
- value: `"Lorem ipsum. Dolor sit 12.34 amet."` - value: `"Lorem ipsum. Dolor sit 12.34 amet."`
- result: `"lorem-ipsum-dolor-sit-1234-amet"` - result: `"lorem-ipsum-dolor-sit-1234-amet"`