Changeset 11636 in josm
- Timestamp:
- 2017-02-26T15:25:22+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r11565 r11636 494 494 // This pattern matches the default list format JOSM uses for bug reports. 495 495 // It removes a list item mark at the beginning of the line: +, -, * 496 // It removes the version number after the plugin, like: 123, (123), (v5.7alpha3), (1b3), ...497 Pattern regex = Pattern.compile("^[-+\\*\\s]*|\\s[\\d\\s]*(\\( ([vab\\.\\d]|alpha|beta)*\\))?[\\d\\s]*$");496 // It removes the version number after the plugin, like: 123, (123), (v5.7alpha3), (1b3), (v1-SNAPSHOT-1)... 497 Pattern regex = Pattern.compile("^[-+\\*\\s]*|\\s[\\d\\s]*(\\([^\\(\\)\\[\\]]*\\))?[\\d\\s]*$"); 498 498 for (String line : lines) { 499 499 String name = regex.matcher(line).replaceAll("");
Note:
See TracChangeset
for help on using the changeset viewer.