{
error += "Please select the source database\n";
}
- com.stevesoft.pat.Regex empty = new com.stevesoft.pat.Regex("\\s+", "");
+ // TODO: make this transformation optional and configurable
+ com.stevesoft.pat.Regex empty = new com.stevesoft.pat.Regex("(\\s|[,; ])+",";"); //\\s+", "");
textArea.setText(empty.replaceAll(textArea.getText()));
- if (textArea.getText().length() == 0)
+ // see if there's anthing to search with
+ if (!new com.stevesoft.pat.Regex("[A-Za-z0-9_.]").search(textArea.getText()))
{
error += "Please enter a (semi-colon separated list of) database id(s)";
}