aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.cpp
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-09-02 22:01:51 +0200
committerGitHub <noreply@github.com>2020-09-02 22:01:51 +0200
commiteaf8fa75a1c76131ecbf2585db6d6236b7334b8e (patch)
tree122ce02a369a1631c575efb056a5bada5cf87ff8 /src/common/Utilities/Util.cpp
parent6e8284a8da0d80391cc0919c32b5ac664be18de2 (diff)
Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.
Diffstat (limited to 'src/common/Utilities/Util.cpp')
-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 511153200b0..b6066e9505b 100644
--- a/src/common/Utilities/Util.cpp
+++ b/src/common/Utilities/Util.cpp
@@ -657,7 +657,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)