|
|
@ -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
|
|
|
|