Skip to content

Commit

Permalink
fix: Address PR comments - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
omerhabib26 committed Feb 12, 2024
1 parent 82b9973 commit fa2870b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/openedx/core/extension/StringExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ fun String.replaceLinkTags(isDarkTheme: Boolean): String {
return text
}

fun String.replaceSpaces(target: String = ""): String = this.replace(" ", target)
fun String.replaceSpace(target: String = ""): String = this.replace(" ", target)

fun String.tagId(): String = this.replaceSpaces("_").lowercase(Locale.getDefault())
fun String.tagId(): String = this.replaceSpace("_").lowercase(Locale.getDefault())

0 comments on commit fa2870b

Please sign in to comment.