mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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
Notes:
sideshowbarker
2024-07-19 05:46:55 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1d94ca7cfc5
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
Reference in a new issue