Skip to content

Commit e91ddbd

Browse files
committed
improve
1 parent 1e84f2d commit e91ddbd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

c++/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class Line
196196

197197
int parse_upstream_addr(char *item_value)
198198
{
199-
return parse_item_trim_space(item_value, digital_or_none_end);
199+
return parse_item_trim_space(item_value, not_space);
200200
}
201201

202202
int parse_upstream_status(char *item_value)

c/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int parse_bytes_sent(const char *s, int *offset, const int len, char *item_value
182182

183183
int parse_upstream_addr(const char *s, int *offset, const int len, char *item_value)
184184
{
185-
return parse_item_trim_space(s, offset, len, item_value, digital_or_none_end);
185+
return parse_item_trim_space(s, offset, len, item_value, not_space);
186186
}
187187

188188
int parse_upstream_status(const char *s, int *offset, const int len, char *item_value)

main.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ proc parse_bytes_sent(this: var Line): string =
132132

133133
# 当前是空格,上一个是-或者数字
134134
proc parse_upstream_addr(this: var Line): string =
135-
return this.parse_item_trim_space(digital_or_none_end)
135+
return this.parse_item_trim_space(not_space)
136136

137137
# 当前是空格,上一个是-或者数字
138138
proc parse_upstream_status(this: var Line): string =

0 commit comments

Comments
 (0)