Fix missed case in quadfix... and re-run

Checked with MQL query successfully:

[{
  "<type>": "</film/film>",
  "<name>": null,
  "</film/film/directed_by>": {
    "<name>": "\"David Fincher\""
  },
  "</film/film/starring>": [{
    "</film/performance/actor>": {
      "<name>": null
    }
  }]
}]
This commit is contained in:
kortschak 2014-07-25 23:10:04 +09:30
parent bf185b7702
commit 9ff97602f0
2 changed files with 6 additions and 2 deletions

Binary file not shown.

View file

@ -29,8 +29,12 @@ func main() {
} else {
t.Subject = "_" + t.Subject
}
if t.Object[0] == ':' && t.Object[1] == '/' {
t.Object = "<" + t.Object[1:] + ">"
if t.Object[0] == ':' {
if t.Object[1] == '/' {
t.Object = "<" + t.Object[1:] + ">"
} else {
t.Object = "_" + t.Object
}
} else if t.Object[0] == '/' {
t.Object = "<" + t.Object + ">"
} else {