Changeset 11636 in josm


Ignore:
Timestamp:
2017-02-26T15:25:22+01:00 (8 years ago)
Author:
michael2402
Message:

Fix #14370: Allow all characters in plugin versions, except for ( and ).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java

    r11565 r11636  
    494494            // This pattern matches the default list format JOSM uses for bug reports.
    495495            // 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]*$");
    498498            for (String line : lines) {
    499499                String name = regex.matcher(line).replaceAll("");
Note: See TracChangeset for help on using the changeset viewer.