kopia lustrzana https://github.com/JOSM/MapWithAI
Trim mapwithai:options string when longer than 255 characters
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
968ea7dc1f
commit
70e3a7f385
|
@ -43,7 +43,9 @@ public class MapWithAIUploadHook implements UploadHook, Destroyable {
|
||||||
.filter(url -> !MapWithAIPreferenceHelper.DEFAULT_MAPWITHAI_API.equalsIgnoreCase(url))
|
.filter(url -> !MapWithAIPreferenceHelper.DEFAULT_MAPWITHAI_API.equalsIgnoreCase(url))
|
||||||
.collect(Collectors.toList())));
|
.collect(Collectors.toList())));
|
||||||
}
|
}
|
||||||
tags.put("mapwithai:options", sb.toString());
|
String mapwithaiOptions = sb.toString();
|
||||||
|
tags.put("mapwithai:options",
|
||||||
|
mapwithaiOptions.length() > 255 ? mapwithaiOptions.substring(0, 255) : mapwithaiOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue