Skip to content

Commit

Permalink
Update String+KebabCase.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay-luassat committed Jun 25, 2024
1 parent 5a986a5 commit d915696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/WrkstrmMain/Extensions/String/String+KebabCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
extension String {
/// Converts the string from camel case to kebab case.
///
/// This method iterates through each character of the string. When it encounters an uppercase character,
/// it adds a hyphen before it (unless it's the first character) and converts it to lowercase. This
/// transformation is particularly useful in contexts where camel case naming needs to be converted to
/// kebab case for URL slugs, CSS class names, etc.
/// This method iterates through each character of the string. When it encounters an uppercase
/// character, it adds a hyphen before it (unless it's the first character) and converts it to
/// lowercase. This transformation is particularly useful in contexts where camel case naming
/// needs to be converted to kebab case for URL slugs, CSS class names, etc.
///
/// For example, "camelCaseString" becomes "camel-case-string".
///
Expand Down

0 comments on commit d915696

Please sign in to comment.