Skip to content

Commit

Permalink
Change the regex for experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdichmann committed Aug 27, 2018
1 parent 69d7b3f commit d6e498f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,9 @@ private void fixSpecialExperiments(Map<String, String> specialExpToExpCode) {
// add project code validators
TextField f = projectInfoComponent.getProjectField();
CompositeValidator vd = new CompositeValidator();
RegexpValidator p = new RegexpValidator("Q[A-Xa-x0-9]{4}",
"Project must have length of 5, start with Q and not contain Y or Z");
//RegexpValidator p = new RegexpValidator("Q[A-Xa-x0-9]{4}",
// "Project must have length of 5, start with Q and not contain Y or Z");
RegexpValidator p = new RegexpValidator("[A-Z]+", "Project must only contain upper case letters");
vd.addValidator(p);
vd.addValidator(new ProjectNameValidator(openbis));
f.addValidator(vd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,9 @@ public void valueChange(ValueChangeEvent event) {

TextField f = contextStep.getProjectCodeField();
CompositeValidator vd = new CompositeValidator();
RegexpValidator p = new RegexpValidator("Q[A-Xa-x0-9]{4}",
"Project must have length of 5, start with Q and not contain Y or Z");
//RegexpValidator p = new RegexpValidator("Q[A-Xa-x0-9]{4}",
// "Project must have length of 5, start with Q and not contain Y or Z");
RegexpValidator p = new RegexpValidator("[A-Z]+", "Project must only contain upper case letters");
vd.addValidator(p);
vd.addValidator(new ProjectNameValidator(openbis));
f.addValidator(vd);
Expand Down

0 comments on commit d6e498f

Please sign in to comment.