diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-05 10:52:52 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-05 10:52:52 +1100 |
commit | 662a3769262df8e8e2c0e5b4e9fc9544fe140b7b (patch) | |
tree | d06d4870d29b0043dff13eef8d05a1b63ec4cf59 /source/core/StarDirectives.cpp | |
parent | 49cadf79023016ce534c0137c53d342c0f23e875 (diff) |
Update StarDirectives.cpp
Diffstat (limited to 'source/core/StarDirectives.cpp')
-rw-r--r-- | source/core/StarDirectives.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/StarDirectives.cpp b/source/core/StarDirectives.cpp index b72e8ee..ea9d565 100644 --- a/source/core/StarDirectives.cpp +++ b/source/core/StarDirectives.cpp @@ -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 { |