Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhBhat committed Nov 26, 2024
1 parent 8f338d2 commit e085d0c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class WCCustomerMapper @Inject constructor() {
}
}

// Please refer WCCustomerMapperTest file which serves as documentation of how this function behaves.
private fun String?.firstNameFromName(): String =
this?.trim()?.replace("\\s+".toRegex(), " ")?.substringBefore(" ") ?: ""

Expand Down

0 comments on commit e085d0c

Please sign in to comment.