Fix addHyphens which added hyphens even after space
This commit is contained in:
parent
d35fd2e283
commit
1c441445a2
1 changed files with 1 additions and 3 deletions
|
|
@ -575,11 +575,9 @@ class Solfa(val sharedScreenModel: SharedScreenModel, private val fileRepository
|
|||
|
||||
private fun String.addHyphens(): String {
|
||||
return this
|
||||
//.replace("_/", "/")
|
||||
.replace(Regex("(?<![\\?:,\\.;])_"), "-_")
|
||||
.replace(Regex("(?<![\\?:,\\.; ])_"), "-_")
|
||||
.replace(Regex("_-(?=_)"), "_")
|
||||
.replace(" -_", "_")
|
||||
.replace(" _", "_")
|
||||
.replace("--_", "-_")
|
||||
.replace(Regex("_$"), "")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue