mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Shell: Stop lying about string types
This commit is contained in:
parent
eeb15fc10b
commit
3d83d70cac
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 3d83d70cac
Pull-request: https://github.com/SerenityOS/serenity/pull/19356
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/krkk ✅
4 changed files with 6 additions and 6 deletions
|
@ -1023,12 +1023,12 @@ AST::MatchEntry Parser::parse_match_entry()
|
|||
for (auto& regex : regexps) {
|
||||
if (names.is_empty()) {
|
||||
for (auto& name : regex.parser_result.capture_groups)
|
||||
names.append(String::from_utf8(name).release_value_but_fixme_should_propagate_errors());
|
||||
names.append(String::from_deprecated_string(name).release_value_but_fixme_should_propagate_errors());
|
||||
} else {
|
||||
size_t index = 0;
|
||||
for (auto& name : regex.parser_result.capture_groups) {
|
||||
if (names.size() <= index) {
|
||||
names.append(String::from_utf8(name).release_value_but_fixme_should_propagate_errors());
|
||||
names.append(String::from_deprecated_string(name).release_value_but_fixme_should_propagate_errors());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue