Skip to content

Commit 9b7d424

Browse files
committed
Handle sources with . in name by replacing them with _
Signed-off-by: Taylor Smock <tsmock@meta.com>
1 parent 551e26e commit 9b7d424

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/main/java/org/openstreetmap/josm/plugins/mapwithai/tools/MapPaintUtils.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public static synchronized void addSourcesToPaintStyle(DataSet ds) {
160160
return;
161161
}
162162
List<String> sources = ds.allPrimitives().stream().map(MapPaintUtils::getSourceValue).filter(Objects::nonNull)
163+
.map(s -> s.replace('.', '_'))
163164
.distinct().collect(Collectors.toList());
164165
if (!styleSource.isLoaded()) {
165166
styleSource.loadStyleSource();

0 commit comments

Comments
 (0)