diff options
author | rihter007 <rihter007@yandex-team.ru> | 2022-02-10 16:49:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:56 +0300 |
commit | b680597fd640bc7c018ffdd21f0d94a24f18450b (patch) | |
tree | e6a96c9570ccaf0212486f6d9b6c6f589027786e /library/cpp/string_utils/url/url.cpp | |
parent | d0a386457ef009c1ed42e3e9b30f0dbcbf89d76b (diff) | |
download | ydb-b680597fd640bc7c018ffdd21f0d94a24f18450b.tar.gz |
Restoring authorship annotation for <rihter007@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.cpp')
-rw-r--r-- | library/cpp/string_utils/url/url.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp index 85f4ac5d69..8947ea0674 100644 --- a/library/cpp/string_utils/url/url.cpp +++ b/library/cpp/string_utils/url/url.cpp @@ -303,13 +303,13 @@ TStringBuf CutWWWNumberedPrefix(const TStringBuf url) noexcept { return url; } -TStringBuf CutMPrefix(const TStringBuf url) noexcept { - if (url.size() >= 2 && url[1] == '.' && (url[0] == 'm' || url[0] == 'M')) { - return url.substr(2); - } - return url; -} - +TStringBuf CutMPrefix(const TStringBuf url) noexcept { + if (url.size() >= 2 && url[1] == '.' && (url[0] == 'm' || url[0] == 'M')) { + return url.substr(2); + } + return url; +} + static inline bool IsSchemeChar(char c) noexcept { return IsAsciiAlnum(c); //what about '+' ?.. } |