| 1 | /* Check for fixme's that have tag-value pairs */ |
| 2 | *[fixme][count(split(" ", tag("fixme"))) == 1][tag(tag("fixme")) != "none"]:modified { |
| 3 | throwWarning: tr("fixme is a tag which exists on the object, is the fixme fixed?"); |
| 4 | assertNoMatch: "way fixme=name"; |
| 5 | assertMatch: "way name=TODO fixme=name"; |
| 6 | assertNoMatch: "way name=TODO fixme=\"name me\""; |
| 7 | assertNoMatch: "way name=TODO"; |
| 8 | } |
| 9 | *[fixme][count(split(" ", tag("fixme"))) == 1][tag(tag("fixme")) != "none"]!:modified { |
| 10 | throwOther: tr("fixme is a tag which exists on the object, is the fixme fixed?"); |
| 11 | assertNoMatch: "way fixme=name"; |
| 12 | assertMatch: "way name=TODO fixme=name"; |
| 13 | assertNoMatch: "way name=TODO fixme=\"name me\""; |
| 14 | assertNoMatch: "way name=TODO"; |
| 15 | } |
| 16 | |