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.
@@ -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);
