Skip to content
Snippets Groups Projects
Verified Commit 3b8e50de authored by rahulsainani's avatar rahulsainani Committed by Pier Angelo Vendrame
Browse files

Bug 1906024 - Format download file names a=diannaS

parent 50394a00
Branches
Tags
1 merge request!1293Bug 43306: Rebased stable onto 128.5.0esr
......@@ -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)
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment