Fix double-quoted strings in parameters
This commit is contained in:
parent
f950fb4d85
commit
270f64c594
1 changed files with 6 additions and 1 deletions
|
|
@ -438,13 +438,18 @@ public class MarkerAPIImpl implements MarkerAPI, Event.Listener<DynmapWorld> {
|
|||
sb.append(c);
|
||||
}
|
||||
}
|
||||
else if(c == '\"') { /* Start of quote? */
|
||||
inquote = true;
|
||||
}
|
||||
else if(c == ':') { /* var:value */
|
||||
varid = sb.toString(); /* Save variable ID */
|
||||
sb.setLength(0);
|
||||
}
|
||||
else if(c == ' ') { /* Ending space? */
|
||||
if(varid == null) { /* No varid? */
|
||||
rslt.put("label", sb.toString());
|
||||
if(sb.length() > 0) {
|
||||
rslt.put("label", sb.toString());
|
||||
}
|
||||
}
|
||||
else {
|
||||
rslt.put(varid, sb.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue