Ticket #21309: 21309.patch
File 21309.patch, 699 bytes (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/gui/io/UploadDialogModel.java
74 74 String hashtags = String.join(";", 75 75 Arrays.stream(comment.split("\\s", -1)) 76 76 .map(s -> Utils.strip(s, ",;")) 77 .filter(s -> s.matches("#[a-zA-Z ][-_a-zA-Z0-9]+"))77 .filter(s -> s.matches("#[a-zA-Z0-9][-_a-zA-Z0-9]+")) 78 78 .collect(Collectors.toList())); 79 79 return hashtags.isEmpty() ? null : hashtags; 80 80 }