aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-09-02 22:01:51 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-04 23:49:59 +0100
commit0d54a5ecb4490408f4fa0c63b825f60d4b55531c (patch)
treec86b73af6d58d17ac78feee5f3aa27a8f7a94e4a /src/common
parentf7c65960a5816aeaf687202e6526b59cd2bf27f3 (diff)
Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.
(cherry picked from commit eaf8fa75a1c76131ecbf2585db6d6236b7334b8e)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Utilities/Util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp
index 317f8c754f8..0d65f1f7f81 100644
--- a/src/common/Utilities/Util.cpp
+++ b/src/common/Utilities/Util.cpp
@@ -842,7 +842,7 @@ bool StringEqualI(std::string_view str1, std::string_view str2)
bool StringStartsWith(std::string_view haystack, std::string_view needle)
{
- return (haystack.rfind(needle, 0) == 0);
+ return (haystack.substr(0, needle.length()) == needle);
}
bool StringContainsStringI(std::string_view haystack, std::string_view needle)