mirror of https://github.com/acidanthera/audk.git
1. Fix EDKT391 The check point of "OutputFileBasename" is missed in wizard tool
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1727 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
322c1d686e
commit
f436f72804
|
@ -218,7 +218,7 @@ public class DataValidation {
|
|||
|
||||
**/
|
||||
public static boolean isFileNameConvention(String arg0) {
|
||||
return isMatch("[a-zA-Z][a-zA-Z0-9]*((_)*(-)*(.)*[a-zA-Z0-9]*)*", arg0);
|
||||
return isMatch("[a-zA-Z](\\.?[-_a-zA-Z0-9]+)*", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1363,6 +1363,12 @@ public class MsaHeader extends IInternalFrame {
|
|||
// jTextFieldOutputFileBasename.addFocusListener(this);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!DataValidation.isOutputFileBasename(this.jTextFieldOutputFileBasename.getText())) {
|
||||
Log.wrn("Update Msa Header", "Incorrect data type for Output File Basename, it must be a valid file name");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.jTextFieldOutputFileBasename.getText().equals(md.getOutputFileBasename())) {
|
||||
this.md.setOutputFileBasename(this.jTextFieldOutputFileBasename.getText());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue