Update file executable_install-program
This commit is contained in:
parent
b106b06fe7
commit
3a0c30e7e0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue