From 6e330a639ee5f7fe913a686804bc48437a96a8b6 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 26 Feb 2025 11:11:56 -0500 Subject: [PATCH] Minor bug fix --- src/lib/ae_utils/ae_utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ae_utils/ae_utils.ts b/src/lib/ae_utils/ae_utils.ts index 0cbe3b02..6e2818f0 100644 --- a/src/lib/ae_utils/ae_utils.ts +++ b/src/lib/ae_utils/ae_utils.ts @@ -127,9 +127,9 @@ function create_video_element({account_id, base_url, hosted_file_id, filename=nu // } -// This function will take a long string (sentences or paraghraphs) of text and return an estimated number of words. +// This function will take a long string (sentences or paragraphs) of text and return an estimated number of words. function count_words(text: string) { - if (!text && text.length < 1) { + if (!text || text.length < 1) { return false; } let count = text.trim().split(/\s+/).length;