diff --git a/index.js b/index.js index e61add0..7b575f0 100644 --- a/index.js +++ b/index.js @@ -303,7 +303,7 @@ exports.decorateConfig = (config) => { // Current process icon const getIcon = (title) => { - const process = title.match(/(?:[\s]+|^)(gulp|php|node|npm|yarn|vim|nvim|python|mysql)(?:[\s]+|\d+$)/i); + const process = title.toString().match(/(?:[\s]+|^)(gulp|php|node|npm|yarn|vim|nvim|python|mysql)(?:[\s]+|\d+$)/i); return process ? process[0].trim().toLowerCase() : 'shell'; };