The regex used to verify problemlist lines:
private static final String commalist = "([\\w-]+)(,[\\w-]+)*";
private static Pattern pattern = Pattern.compile("\\S+\\s+" + commalist + "\\s" + commalist + ".*");
Is missing a plus for the spaces in the middle. More than one whitespace should be okay.
private static final String commalist = "([\\w-]+)(,[\\w-]+)*";
private static Pattern pattern = Pattern.compile("\\S+\\s+" + commalist + "\\s" + commalist + ".*");
Is missing a plus for the spaces in the middle. More than one whitespace should be okay.
- duplicates
-
CODETOOLS-7903886 --verify-exclude regex is incorrect
- Closed