util/UriExtract: use uri_get_scheme() in uri_has_scheme()
This commit is contained in:
parent
0509472636
commit
71448e645c
|
@ -82,7 +82,7 @@ uri_after_scheme(const char *uri) noexcept
|
||||||
bool
|
bool
|
||||||
uri_has_scheme(const char *uri) noexcept
|
uri_has_scheme(const char *uri) noexcept
|
||||||
{
|
{
|
||||||
return strstr(uri, "://") != nullptr;
|
return !uri_get_scheme(uri).IsNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView
|
StringView
|
||||||
|
|
Loading…
Reference in New Issue