Changeset 13994 in josm for trunk/src/org
- Timestamp:
- 2018-07-01T16:09:11+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCommentModel.java
r13109 r13994 8 8 9 9 import org.openstreetmap.josm.gui.util.ChangeNotifier; 10 import org.openstreetmap.josm.tools.Utils; 10 11 11 12 /** … … 45 46 */ 46 47 public List<String> findHashTags() { 47 return Arrays.stream(comment.split("\\s")).filter(s -> s.length() >= 2 && s.charAt(0) == '#').collect(Collectors.toList()); 48 return Arrays.stream(comment.split("\\s")) 49 .map(s -> Utils.strip(s, ",;")) 50 .filter(s -> s.matches("#[a-zA-Z][a-zA-Z_\\-0-9]+")) 51 .collect(Collectors.toList()); 48 52 } 49 53 }
Note:
See TracChangeset
for help on using the changeset viewer.