mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
Renames to fix clashes with reserved words.
This commit is contained in:
1 parent
3788605127
commit
f238f81ba6
6 files changed
+25
-25
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user