Update StarDirectives.cpp

This commit is contained in:
Kae 2024-11-05 10:52:52 +11:00
parent 49cadf7902
commit 662a376926

View File

@ -161,8 +161,10 @@ StringView Directives::prefix() const {
return "";
else if (m_shared->empty())
return m_shared->string;
else if (m_shared->string.utf8().at(0) == '?')
return "";
else
return StringView(m_shared->string).substr(0, m_shared->entries.begin()->begin);
return m_shared->entries.front().string(*m_shared);
}
String Directives::string() const {