mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:08:12 +00:00
AK: Standardize the behaviour of GenericLexer::consume_until overloads
Before this commit all consume_until overloads aside from the Predicate one would consume (and ignore) the stop char/string, while the Predicate overload would not, in order to keep behaviour consistent, the other overloads no longer consume the stop char/string as well.
This commit is contained in:
parent
d49d2c7ec4
commit
67ce9e28a5
7 changed files with 18 additions and 14 deletions
|
@ -865,7 +865,7 @@ ErrorOr<NonnullRefPtr<Custody>> VirtualFileSystem::resolve_path_without_veil(Str
|
|||
if (path_lexer.is_eof())
|
||||
extra_iteration = false;
|
||||
auto part = path_lexer.consume_until('/');
|
||||
path_lexer.consume_specific('/');
|
||||
path_lexer.ignore();
|
||||
|
||||
Custody& parent = custody;
|
||||
auto parent_metadata = parent.inode().metadata();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue