1
0
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:
joe-conigliaro
2019-08-27 14:53:56 +10:00
committed by Alexander Medvednikov
parent 3db50f724b
commit 02fc7e14cd
5 changed files with 37 additions and 23 deletions

View File

@ -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()