Renames to fix clashes with reserved words.

This commit is contained in:
Martin Smith
2025-02-28 20:00:40 +00:00
parent 3788605127
commit f238f81ba6
6 changed files with 25 additions and 25 deletions

View File

@@ -47,8 +47,8 @@ func SplitShellStrings(data string) (strs []string, err error) {
// derived from strings.SplitFunc
fieldStart := -1 // Set to -1 when looking for start of field.
for i, rune := range data {
if s.isSplitChar(rune) {
for i, r := range data {
if s.isSplitChar(r) {
if fieldStart >= 0 {
strs = append(strs, data[fieldStart:i])
fieldStart = -1