Fix mass migration advanced search query building (#2629)

This commit is contained in:
AntsyLich
2025-11-01 00:50:19 +06:00
committed by GitHub
parent cbf72f4c60
commit 7c08b75555
2 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
- Fix migration progress not updating after manual search ([@Secozzi](https://github.com/Secozzi)) ([#2484](https://github.com/mihonapp/mihon/pull/2484))
- Fix category migration flag being ignored due to incorrect check against chapter flag ([@Secozzi](https://github.com/Secozzi)) ([#2484](https://github.com/mihonapp/mihon/pull/2484))
- Fix disabling incognito mode from notification ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2512](https://github.com/mihonapp/mihon/pull/2512))
- Fix mass migration advanced search query building ([@AntsyLich](https://github.com/AntsyLich)) ([#2629](https://github.com/mihonapp/mihon/pull/22629))
### Other
- Fix Kitsu tracker to conform to tracker data structure properly ([@cpiber](https://github.com/cpiber)) ([#2609](https://github.com/mihonapp/mihon/pull/2609))

View File

@@ -95,8 +95,8 @@ abstract class BaseSmartSearchEngine<T>(
}
private fun removeTextInBrackets(text: String, readForward: Boolean): String {
val openingChars = if (readForward) "([<{ " else ")]}>"
val closingChars = if (readForward) ")]}>" else "([<{ "
val openingChars = if (readForward) "([<{" else ")]}>"
val closingChars = if (readForward) ")]}>" else "([<{"
var depth = 0
return buildString {