ignore secode equal sign in ini mod

master
兔子 5 years ago
parent ce7a67f4d0
commit bff6efff15

@ -272,7 +272,7 @@ func (this *StarCfg) Parse(data []byte) {
continue continue
} }
} }
if v2 == '=' && (!istrans && !isnote) { if v2 == '=' && (!istrans && !isnote && !isequal) {
isequal = true isequal = true
continue continue
} }
@ -513,7 +513,7 @@ func (this *StarCfg) Build() []byte {
func (this *StarCfg) repkv(value string) string { 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)
value = strings.Replace(value, `[`, `\[`, -1) value = strings.Replace(value, `[`, `\[`, -1)
value = strings.Replace(value, `]`, `\]`, -1) value = strings.Replace(value, `]`, `\]`, -1)
return value return value

Loading…
Cancel
Save