From 3a0c30e7e0660027c7dd58d80805400d354abeef Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 24 Jan 2023 17:59:07 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index c6cf1719..9099a89d 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -81,8 +81,8 @@ function locations(substring,string){ function wrapMessage(msg) { const indexes = locations('`', msg) - if (indexes.length > 1) { - return wrapMessage(msg.substring(0, indexes[0]) + chalk.bold.black.bgGray(' ' + msg.substring(indexes[0] + 1, indexes[1] + 1 - indexes[0]) + ' ') + msg.substring(indexes[1] + 1 - indexes[0]) + ' ') + if (indexes.length > 3) { + return msg.substring(0, indexes[0]) + chalk.bold.black.bgGray(' ' + msg.substring(indexes[0] + 1, indexes[1] + 1 - indexes[0]) + ' ') + msg.substring(indexes[1] + 1 - indexes[0]) + ' ' } else { return msg }