Commit df30bf3b authored by rahulsainani's avatar rahulsainani Committed by Beatriz Rizental
Browse files

Bug 1906024 - Format download file names a=diannaS

parent 8cf4b639
Loading
Loading
Loading
Loading
+1 −1
Changes for mobile/android/android-components/components/support/ktx/src/main/java/mozilla/components/support/ktx/kotlin/String.kt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ private fun String.replaceEscapedCharacters(): String {
 * Replaces continuous spaces with a single space.
 */
private fun String.replaceContinuousSpaces(): String {
    val escapedCharactersRegex = "\\s+".toRegex()
    val escapedCharactersRegex = "[\\p{Z}\\s]+".toRegex()
    return replace(escapedCharactersRegex, SPACE)
}