Skip to content

Commit ee234c8

Browse files
committed
Fix split regular expression
1 parent a26b4dd commit ee234c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

execr/execr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/roemer/gotaskr/log"
1212
)
1313

14-
var argumentsRegex = regexp.MustCompile(`(?m)[\w]+|"[\w\\"\s]*"`)
14+
var argumentsRegex = regexp.MustCompile(`[^\s"]+|"((\\"|[^"])*)"`)
1515

1616
func NewCmd(executable string, arguments ...string) *exec.Cmd {
1717
return exec.Command(executable, arguments...)

0 commit comments

Comments
 (0)