From 185ebb223ba0904e65395f226a13b3bc708014fb Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 26 Oct 2019 15:03:12 +0200 Subject: [PATCH] fix: cleanCli undefined --- src/cleaner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cleaner.js b/src/cleaner.js index 46cab23c..e15ddbcb 100644 --- a/src/cleaner.js +++ b/src/cleaner.js @@ -49,16 +49,16 @@ const regexCli = /([-]{2})([0-9a-z-_]+)/i; * @returns {String} The cleaned cli */ const cleanCli = function(cli, skipRegex = false) { - if (cli !== undefined && typeof cli === 'string') { + if (typeof cli === 'string') { if (cli.match(//i) || cli.match(/<\/code\>/i)) { cli = cli.replace(//gi, ''); cli = cli.replace(/<\/code\>/gi, ''); cli = cli.replace(/\>/gi, ''); cli = cli.replace(/