Browse Source

Fixed Strip function usage with system std::string
db0a00cc7d5e1391deed4254e71b5ac9ce01919b

brgayazov 7 months ago
parent
commit
a962048130
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util/string/strip.h

+ 2 - 2
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;