mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Make more readable documentation of Regex class
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user