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 Directives::Entry::string(Shared const& parent) const {
|
||||||
StringView result(parent.string);
|
StringView result = parent.string;
|
||||||
result = result.substr(begin, length);
|
result = result.utf8().substr(begin, length);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,6 +150,7 @@ ImageOperation imageOperationFromString(StringView string) {
|
|||||||
try {
|
try {
|
||||||
List<StringView> bits;
|
List<StringView> bits;
|
||||||
string.forEachSplitAnyView("=;", [&](StringView split, size_t, size_t) {
|
string.forEachSplitAnyView("=;", [&](StringView split, size_t, size_t) {
|
||||||
|
if (!split.empty())
|
||||||
bits.emplace_back(split);
|
bits.emplace_back(split);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user