Fix minor issues
This commit is contained in:
parent
09d26d43b5
commit
500e81329a
@ -25,8 +25,8 @@ Directives::Entry::Entry(Entry const& other) {
|
||||
}
|
||||
|
||||
StringView Directives::Entry::string(Shared const& parent) const {
|
||||
StringView result(parent.string);
|
||||
result = result.substr(begin, length);
|
||||
StringView result = parent.string;
|
||||
result = result.utf8().substr(begin, length);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -150,6 +150,7 @@ ImageOperation imageOperationFromString(StringView string) {
|
||||
try {
|
||||
List<StringView> bits;
|
||||
string.forEachSplitAnyView("=;", [&](StringView split, size_t, size_t) {
|
||||
if (!split.empty())
|
||||
bits.emplace_back(split);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user