mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
make trim use cutset like trim_right/trim_left
This commit is contained in:
parent
3db50f724b
commit
02fc7e14cd
5 changed files with 37 additions and 23 deletions
|
@ -28,8 +28,8 @@ fn test_flag_parsing() {
|
|||
}
|
||||
}
|
||||
arg := if lowest != -1 {
|
||||
rest = base.right(lowest).trim_space().trim(`,`)
|
||||
base.left(lowest).trim_space().trim(`,`)
|
||||
rest = base.right(lowest).trim_space().trim(',')
|
||||
base.left(lowest).trim_space().trim(',')
|
||||
} else {
|
||||
rest = ''
|
||||
base.trim_space()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue