Added isPrintableCharacter method to ObjectUtils

pull/2817/head
mertsincan 2022-07-29 01:55:12 +01:00
parent 7a01f9e32f
commit 670aef93fc
1 changed files with 4 additions and 1 deletions

View File

@ -218,6 +218,9 @@ export default {
isNotEmpty(value) {
return !this.isEmpty(value);
}
},
isPrintableCharacter(char = '') {
return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
}
}