mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make trim use cutset like trim_right/trim_left
This commit is contained in:

committed by
Alexander Medvednikov

parent
3db50f724b
commit
02fc7e14cd
@ -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()
|
||||
|
Reference in New Issue
Block a user