Compare commits

..

2 Commits

Author SHA1 Message Date
d2651bf09e
Break tests
Some checks failed
continuous-integration/drone/pr Build is failing
2023-07-21 14:27:06 +02:00
de7e58c274
StringView: Fix equality operator
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-21 14:26:54 +02:00

View File

@ -50,12 +50,12 @@ const char& StringView::operator[](usize index) const
bool StringView::operator==(const char* other) const
{
return !strncmp(m_string, other, m_length);
return !strcmp(m_string, other);
}
bool StringView::operator==(StringView other) const
{
return !strncmp(m_string, other.m_string, m_length);
return !strcmp(m_string, other.m_string);
}
Result<Vector<String>> StringView::split(StringView delim) const