Compare commits

..

1 Commits

Author SHA1 Message Date
53ebe8102e
Break tests
All checks were successful
continuous-integration/drone/pr Build is passing
2023-07-21 14:22:32 +02:00

View File

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