Skip to content

Commit

Permalink
[FIXED JENKINS-15525] Change projectset regular expression parser
Browse files Browse the repository at this point in the history
1. Support periods in hostname/IP Address of CVS Root
2. Allow no port to be specified in CVS Root with colon still being present
2. Allow slashes in remote module name
  • Loading branch information
mc1arke committed Oct 15, 2012
1 parent 4822c4f commit d413566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/scm/CvsProjectset.java
Expand Up @@ -45,8 +45,8 @@

public class CvsProjectset extends AbstractCvs {

private static final Pattern PSF_PATTERN = Pattern.compile("<project reference=\"[^,]+,((:[a-z]+:)([a-z|A-Z|0-9]+)" +
"(:([0-9]+))?([/|a-z|A-Z|_|0-9]+)),([A-Z|a-z|0-9|_|\\.]+),([A-Z|a-z|0-9|_|\\.]+)(,(.*?)){0,1}\"/>");
private static final Pattern PSF_PATTERN = Pattern.compile("<project reference=\"[^,]+,((:[a-z]+:)([a-z|A-Z|0-9|\\.]+)" +
"(:([0-9]+)?)?([/|a-z|A-Z|_|0-9]+)),([/|A-Z|a-z|0-9|_|\\.]+),([A-Z|a-z|0-9|_|\\.]+)(,(.*?)){0,1}\"/>");

private final CvsRepository[] repositories;
private final boolean canUseUpdate;
Expand Down

0 comments on commit d413566

Please sign in to comment.