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(/