fixed 'pref' type having + on every added line
This commit is contained in:
parent
bb2d08fe5c
commit
6cf212ecd8
2 changed files with 1 additions and 2 deletions
2
pref.go
2
pref.go
|
@ -33,7 +33,7 @@ func applyPrefModifications(targetFilePath string, modifications []string) error
|
|||
end := strings.LastIndex(mod, ")")
|
||||
if start > 0 && end > start {
|
||||
key := strings.TrimSpace(mod[start+1 : end]) // Extract the preference key
|
||||
modMap[key] = mod // Full modification line
|
||||
modMap[key] = strings.TrimPrefix(mod, "+") // Full modification line
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue