misc: configurator: fix minor bug of IVSHMEM region name

IVSHMEM region name input value may be null after saving the scenario.
Add a null check to avoid marking empty input as correct.

Tracked-On: #7707
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
Yifan Liu 2022-06-08 09:38:12 +08:00 committed by acrnsi-robot
parent ddefcccb26
commit c32b182958
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ export default {
methods: {
validateIvshrgName(value) {
var regexp = new RegExp(this.IVSHMEMRegionType.properties.NAME.pattern);
return regexp.test(value);
return (value != null) && regexp.test(value);
},
validation(value) {
return (value != null) && (value.length != 0);