fix: trim whitespace from actrc (#1024)
fixes #985 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
c22d833830
commit
3db3c73723
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ func readArgsFile(file string) []string {
|
||||||
}()
|
}()
|
||||||
scanner := bufio.NewScanner(f)
|
scanner := bufio.NewScanner(f)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
arg := scanner.Text()
|
arg := strings.TrimSpace(scanner.Text())
|
||||||
if strings.HasPrefix(arg, "-") {
|
if strings.HasPrefix(arg, "-") {
|
||||||
args = append(args, regexp.MustCompile(`\s`).Split(arg, 2)...)
|
args = append(args, regexp.MustCompile(`\s`).Split(arg, 2)...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue