...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module texttools
|
||||
module texttools
|
||||
|
||||
pub fn snake_case(s string) string {
|
||||
return separate_words(s).join('_')
|
||||
@@ -35,4 +35,4 @@ fn separate_words(s string) []string {
|
||||
words << word.to_lower()
|
||||
}
|
||||
return words
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user