Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 31, 2023
1 parent e51a0a5 commit 4c5b3c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.0.1 - 2023-12-31

- Removed debug code.


## v1.0.0 - 2023-12-30

- Initial release.
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "justin"
version = "1.0.0"
version = "1.0.1"
description = "Convert between snake_case, camelCase, and other cases in Gleam"
licences = ["Apache-2.0"]
repository = { type = "github", user = "lpil", repo = "justin" }
Expand Down
2 changes: 0 additions & 2 deletions src/justin.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import gleam/string
import gleam/io
import gleam/list

/// Convert a string to a `snake_case`.
Expand Down Expand Up @@ -114,7 +113,6 @@ fn split(
| [" ", ..in] -> split(in, False, "", add(words, word))

[g, ..in] -> {
io.println(string.inspect(#(g, is_upper(g))))
case is_upper(g) {
// Lowercase, not a new word
False -> split(in, False, word <> g, words)
Expand Down

0 comments on commit 4c5b3c6

Please sign in to comment.