We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b03ca3 commit afcc590Copy full SHA for afcc590
src/Features/Tas/TasParser.cpp
@@ -777,7 +777,7 @@ float TasParser::toFloat(std::string str) {
777
}
778
779
bool TasParser::hasSuffix(const std::string &str, const std::string &suffix) {
780
- return str.size() > suffix.length() && str.substr(str.size() - suffix.length()) == suffix;
+ return Utils::EndsWith(str, suffix);
781
782
783
float TasParser::toFloatAssumeSuffix(std::string str, const std::string &suffix) {
0 commit comments