mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Added isPrintableCharacter method to ObjectUtils
This commit is contained in:
parent
7a01f9e32f
commit
670aef93fc
1 changed files with 4 additions and 1 deletions
|
@ -218,6 +218,9 @@ export default {
|
|||
|
||||
isNotEmpty(value) {
|
||||
return !this.isEmpty(value);
|
||||
}
|
||||
},
|
||||
|
||||
isPrintableCharacter(char = '') {
|
||||
return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue