added mod_tag (fix)
This commit is contained in:
@@ -116,6 +116,7 @@ func Tokens(str string) ([]string, error) {
|
||||
sb = strings.Builder{}
|
||||
mode = MODE_STR
|
||||
}
|
||||
mode = MODE_STR
|
||||
case MODE_TAG:
|
||||
sb.WriteRune(a)
|
||||
params = append(params, sb.String())
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ func TestLines(t *testing.T) {
|
||||
//lines, err := Lines("; \";\" ;;")
|
||||
//Lines("a\nb\\\\nc")
|
||||
lines, err := Lines(`
|
||||
go build -o main.exe -ldflags="a=1 b=2" ./main.go
|
||||
"A STR"
|
||||
`)
|
||||
//lines, err := Lines(`
|
||||
//go build -o main.exe -ldflags="a=1 b=2" ./main.go
|
||||
|
||||
Reference in New Issue
Block a user