mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:45:07 +00:00
LibWeb: Fix codepoint_from_entity() never returning an error
If we don't find a matching entity, return an empty Optional.
This commit is contained in:
parent
ec83555b87
commit
1d94ca7cfc
1 changed files with 2 additions and 0 deletions
|
@ -2292,6 +2292,8 @@ Optional<EntityMatch> codepoints_from_entity(const StringView& entity)
|
|||
}
|
||||
}
|
||||
|
||||
if (match.entity.is_empty())
|
||||
return {};
|
||||
return match;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue