From 670aef93fc02079324b917021ab8c90bfe6f7556 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 29 Jul 2022 01:55:12 +0100 Subject: [PATCH] Added isPrintableCharacter method to ObjectUtils --- src/components/utils/ObjectUtils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/utils/ObjectUtils.js b/src/components/utils/ObjectUtils.js index 36e145d0a..04e7c6984 100755 --- a/src/components/utils/ObjectUtils.js +++ b/src/components/utils/ObjectUtils.js @@ -218,6 +218,9 @@ export default { isNotEmpty(value) { return !this.isEmpty(value); - } + }, + isPrintableCharacter(char = '') { + return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /); + } }