Line length

This commit is contained in:
Justin Mazzocchi 2021-02-16 19:53:43 -08:00
parent 9131945664
commit 376c62e399
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 4 additions and 2 deletions

View File

@ -345,8 +345,10 @@ private extension CompositionView {
func spoilerTextAutocompleteSelected(_ autocompleteText: String) {
guard let autocompleteQuery = viewModel.contentWarningAutocompleteQuery,
let queryRange = viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
let textToSelectedRangeRange = viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
let queryRange =
viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
let textToSelectedRangeRange =
viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
else { return }
let replaced = viewModel.contentWarningTextToSelectedRange.replacingOccurrences(