Added isPrintableCharacter method to ObjectUtils
parent
7a01f9e32f
commit
670aef93fc
|
@ -218,6 +218,9 @@ export default {
|
||||||
|
|
||||||
isNotEmpty(value) {
|
isNotEmpty(value) {
|
||||||
return !this.isEmpty(value);
|
return !this.isEmpty(value);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
isPrintableCharacter(char = '') {
|
||||||
|
return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue