diff --git a/commands.js b/commands.js index 138ee6b..f360eca 100644 --- a/commands.js +++ b/commands.js @@ -157,7 +157,7 @@ Commander.prototype.process = function (line) { self.view.writeLine(`${cmd} is not a command, type /help for commands`) } else { line = line.trim() - if (line !== '' && self.channel !== "!status") { + if (line !== '' && self.channel !== '!status') { self.cabal.publish({ type: 'chat/text', content: { diff --git a/markdown-shim.js b/markdown-shim.js index 9fad5ea..691fbf4 100644 --- a/markdown-shim.js +++ b/markdown-shim.js @@ -1,10 +1,10 @@ -var ansiEscapes = require("ansi-escapes") -var supportsHyperlinks = require("supports-hyperlinks") +var ansiEscapes = require('ansi-escapes') +var supportsHyperlinks = require('supports-hyperlinks') var linkPattern = /(\[(.+?)\]\((\S+)\))/ function linkify (text, url) { - return supportsHyperlinks.stdout ? ansiEscapes.link(text, url) : `${text} (${url})` + return supportsHyperlinks.stdout ? ansiEscapes.link(text, url) : `${text} (${url})` } // naively parse markdown and return it as a terminal friendly formatting