Skip to content

Commit afcc590

Browse files
committed
refactor: use utility for suffix check
1 parent 9b03ca3 commit afcc590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Features/Tas/TasParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ float TasParser::toFloat(std::string str) {
777777
}
778778

779779
bool TasParser::hasSuffix(const std::string &str, const std::string &suffix) {
780-
return str.size() > suffix.length() && str.substr(str.size() - suffix.length()) == suffix;
780+
return Utils::EndsWith(str, suffix);
781781
}
782782

783783
float TasParser::toFloatAssumeSuffix(std::string str, const std::string &suffix) {

0 commit comments

Comments
 (0)