mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-08 22:08:47 +01:00
fix: link hashtags (#720)
This commit is contained in:
parent
dc02ecef39
commit
d31287fa10
@ -22,6 +22,7 @@ internal fun String.sanitize(): String = this
|
||||
.spoilerFixUp()
|
||||
.quoteFixUp()
|
||||
.expandLemmyHandles()
|
||||
.cleanupEscapes()
|
||||
|
||||
private fun String.removeEntities(): String =
|
||||
replace("&", "&")
|
||||
@ -92,3 +93,6 @@ private fun String.expandLemmyHandles(): String = let { content ->
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun String.cleanupEscapes(): String =
|
||||
replace("\\#", "#")
|
||||
|
@ -20,4 +20,4 @@ internal class DefaultExportSettingsUseCase(
|
||||
val data = settings.toData()
|
||||
jsonSerializationStrategy.encodeToString(data)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,3 @@ internal class DefaultImportSettingsUseCase(
|
||||
settingsRepository.changeCurrentSettings(settings)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,4 +60,4 @@ actual val fileSystemModule = module {
|
||||
actual fun getFileSystemManager(): FileSystemManager {
|
||||
val res by KoinJavaComponent.inject<FileSystemManager>(FileSystemManager::class.java)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user