Merge pull request #372 from badloop/fixSiteParsing

fix: rfind to find for more consistent site parsing
This commit is contained in:
Dan Paulat 2025-02-17 15:02:03 -06:00 committed by GitHub
commit 501ea22ea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -639,7 +639,7 @@ void SettingsDialogImpl::SetupGeneralTab()
[](const std::string& text) -> std::string
{
// Find the position of location details
size_t pos = text.rfind(" (");
size_t pos = text.find(" (");
if (pos == std::string::npos)
{
@ -1060,7 +1060,7 @@ void SettingsDialogImpl::SetupAudioTab()
[](const std::string& text) -> std::string
{
// Find the position of location details
size_t pos = text.rfind(" (");
size_t pos = text.find(" (");
if (pos == std::string::npos)
{