ignore secode equal sign in ini mod
This commit is contained in:
parent
ce7a67f4d0
commit
bff6efff15
4
ini.go
4
ini.go
@ -272,7 +272,7 @@ func (this *StarCfg) Parse(data []byte) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
if v2 == '=' && (!istrans && !isnote) {
|
||||
if v2 == '=' && (!istrans && !isnote && !isequal) {
|
||||
isequal = true
|
||||
continue
|
||||
}
|
||||
@ -513,7 +513,7 @@ func (this *StarCfg) Build() []byte {
|
||||
func (this *StarCfg) repkv(value string) string {
|
||||
value = strings.Replace(value, `\`, `\\`, -1)
|
||||
value = strings.Replace(value, `#`, `\#`, -1)
|
||||
value = strings.Replace(value, `=`, `\=`, -1)
|
||||
//value = strings.Replace(value, `=`, `\=`, -1)
|
||||
value = strings.Replace(value, `[`, `\[`, -1)
|
||||
value = strings.Replace(value, `]`, `\]`, -1)
|
||||
return value
|
||||
|
Loading…
x
Reference in New Issue
Block a user