aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/strings.c')
-rw-r--r--src/utils/strings.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/strings.c b/src/utils/strings.c
index 846ae95..3151612 100644
--- a/src/utils/strings.c
+++ b/src/utils/strings.c
@@ -111,7 +111,8 @@ b_str_lstrip(char *str)
size_t str_len = strlen(str);
for (i = 0; i < str_len; i++) {
if ((str[i] != ' ') && (str[i] != '\t') && (str[i] != '\n') &&
- (str[i] != '\r') && (str[i] != '\t'))
+ (str[i] != '\r') && (str[i] != '\t') && (str[i] != '\f') &&
+ (str[i] != '\v'))
{
str += i;
break;
@@ -134,7 +135,8 @@ b_str_rstrip(char *str)
size_t str_len = strlen(str);
for (i = str_len - 1; i >= 0; i--) {
if ((str[i] != ' ') && (str[i] != '\t') && (str[i] != '\n') &&
- (str[i] != '\r') && (str[i] != '\t'))
+ (str[i] != '\r') && (str[i] != '\t') && (str[i] != '\f') &&
+ (str[i] != '\v'))
{
str[i + 1] = '\0';
break;