summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrgayazov <[email protected]>2024-07-29 15:48:23 +0300
committerbrgayazov <[email protected]>2024-07-29 16:06:34 +0300
commita962048130c7b8aeee4e48ca007c090321f9d0fb (patch)
tree1e1bdb230b8dea8e0090c3fc94a38497ee9366a1
parent9d04836b88630f80198f5fc5c154b38d1142d28b (diff)
Fixed Strip function usage with system std::string
db0a00cc7d5e1391deed4254e71b5ac9ce01919b
-rw-r--r--util/string/strip.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/string/strip.h b/util/string/strip.h
index 666300e0e71..809a047cd87 100644
--- a/util/string/strip.h
+++ b/util/string/strip.h
@@ -88,9 +88,9 @@ struct TStripImpl {
if (StripRange(b, e, criterion)) {
if constexpr (::TIsTemplateBaseOf<std::basic_string_view, T>::value) {
- to = T(b, e - b);
+ to = T(b, e);
} else {
- to.assign(b, e - b);
+ to.assign(b, e);
}
return true;