Ignore:
Timestamp:
2017-02-14T23:29:04+01:00 (7 years ago)
Author:
michael2402
Message:

See #14370: Explain that pattern

File:
1 edited

Legend:

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

    r11564 r11565  
    492492            List<String> toActivate = new ArrayList<>();
    493493            List<String> notFound = new ArrayList<>();
     494            // This pattern matches the default list format JOSM uses for bug reports.
     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), ...
    494497            Pattern regex = Pattern.compile("^[-+\\*\\s]*|\\s[\\d\\s]*(\\(([vab\\.\\d]|alpha|beta)*\\))?[\\d\\s]*$");
    495498            for (String line : lines) {
Note: See TracChangeset for help on using the changeset viewer.