mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Shell: Stop lying about string types
This commit is contained in:
parent
eeb15fc10b
commit
3d83d70cac
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