Commit 065a961
committed
bug #57497 [String] Fixed u()->snake(), b()->snake() and s()->snake() methods (arczinosek)
This PR was merged into the 5.4 branch.
Discussion
----------
[String] Fixed u()->snake(), b()->snake() and s()->snake() methods
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #57464
| License | MIT
[String] ByteString::snake and AbstractUnitcodeString::snake methods doesn't convert all uppercase words in the right way.
For example, string "GREAT SYMFONY" is converted to "greatsymfony" instead of "great_symfony".
Commits
-------
f93113e80e [String] Fix *String::snake methodsFile tree
3 files changed
+6
-4
lines changed- Tests
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
| 1080 | + | |
| 1081 | + | |
1080 | 1082 | | |
1081 | 1083 | | |
1082 | 1084 | | |
| |||
0 commit comments