mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed command executer test
This commit is contained in:
committed by
Dan Christian Bogos
parent
89a181bf12
commit
73db1aeff4
@@ -107,9 +107,9 @@ func (ce *CommandExecuter) LocalExecute() string {
|
||||
}
|
||||
|
||||
func ToJSON(line string) (jsn []byte) {
|
||||
// if !strings.Contains(line, "=") {
|
||||
// line = fmt.Sprintf("Item=\"%s\"", line)
|
||||
// }
|
||||
if !strings.Contains(line, "=") && line != "" {
|
||||
line = fmt.Sprintf("Item=\"%s\"", line)
|
||||
}
|
||||
jsn = append(jsn, '{')
|
||||
for _, group := range lineR.FindAllStringSubmatch(line, -1) {
|
||||
if len(group) == 3 {
|
||||
|
||||
Reference in New Issue
Block a user