We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2013e6b commit 622025bCopy full SHA for 622025b
1 file changed
validator.sh
@@ -186,8 +186,7 @@ validate_body_length() {
186
while IFS= read -r LINE ;
187
do
188
# Skip lines with no spaces as they can't be split
189
- $(echo -n "$LINE" | grep -q "\s") || continue
190
-
+ [[ ! "$LINE" =~ [[:space:]] ]] && continue
191
192
if [[ "${#LINE}" -gt ${GLOBAL_BODY_MAX_LENGTH} ]]; then
193
echo -e "body message line length is more than ${GLOBAL_BODY_MAX_LENGTH} characters"
0 commit comments