Skip to content

Commit

Permalink
Merge pull request #498 from kevin-lee/update-docs
Browse files Browse the repository at this point in the history
Update docs - `cases.md` - `Seq[String]` to `Snake_Case_String`
  • Loading branch information
kevin-lee authored Nov 6, 2023
2 parents c73ad6a + 40c1b4f commit aba1cd3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/extras-string/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,35 @@ List("abc def ghi", "jkl mno pqr", "st u").mkCamelCaseString
List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkCamelCaseString
```

### `Seq[String]` to `Snake_Case_String`

```scala mdoc
List("Abc", "Def").mkSnakeCaseString

List("AbcDef", "Ghi", "jkl", "MnoPqr").mkSnakeCaseString

List("abcDef", "Ghi", "jkl", "MnoPqr").mkSnakeCaseString

List("abc").mkSnakeCaseString

List("ABC").mkSnakeCaseString

List("Abc_Def_Ghi", "jkl_mno_Pqr").mkSnakeCaseString

List("abc_def_ghi", "jkl_mno_pqr", "st_u").mkSnakeCaseString

List("ABC_DEF_GHI", "JKL_MNO_PQR", "ST_U").mkSnakeCaseString

List("Abc-Def-Ghi", "jkl-mno-Pqr").mkSnakeCaseString

List("abc-def-ghi", "jkl-mno-pqr", "st-u").mkSnakeCaseString

List("ABC-DEF-GHI", "JKL-MNO-PQR", "ST-U").mkSnakeCaseString

List("Abc Def Ghi", "jkl mno Pqr").mkSnakeCaseString

List("abc def ghi", "jkl mno pqr", "st u").mkSnakeCaseString

List("ABC DEF GHI", "JKL MNO PQR", "ST U").mkSnakeCaseString
```

0 comments on commit aba1cd3

Please sign in to comment.