diff options
Diffstat (limited to 'src/libutil/split.hh')
-rw-r--r-- | src/libutil/split.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/split.hh b/src/libutil/split.hh index 3b9b2b83b..4ff940eef 100644 --- a/src/libutil/split.hh +++ b/src/libutil/split.hh @@ -27,7 +27,7 @@ static inline std::optional<std::string_view> splitPrefixTo(std::string_view & s } static inline bool splitPrefix(std::string_view & string, std::string_view prefix) { - bool res = hasPrefix(string, prefix); + bool res = string.starts_with(prefix); if (res) string.remove_prefix(prefix.length()); return res; |