1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

AK: Add static bool LexicalPath::is_absolute_path(StringView path);

This commit is contained in:
stasoid 2024-11-15 16:20:53 +05:00 committed by Andrew Kaster
parent a828a0e158
commit 69f5f40617
Notes: github-actions[bot] 2024-11-19 22:18:28 +00:00
3 changed files with 7 additions and 11 deletions

View file

@ -58,9 +58,9 @@ LexicalPath::LexicalPath(ByteString path)
}
}
bool LexicalPath::is_absolute() const
bool LexicalPath::is_absolute_path(StringView path)
{
return m_string.starts_with('/');
return path.starts_with('/');
}
Vector<ByteString> LexicalPath::parts() const