Skip to content
Snippets Groups Projects
Commit 94db1cec authored by rahulsainani's avatar rahulsainani Committed by Pier Angelo Vendrame
Browse files

Bug 1906024 - Format download file names a=diannaS

parent 71e8c191
No related branches found
No related tags found
1 merge request!1462BB/TB 43584: Rebased stable again onto 128.9.0esr build2
......@@ -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 register or to comment