From e00b28d2015c4f5197f011e5efc0310684423b2a Mon Sep 17 00:00:00 2001 From: PolarizedIons Date: Fri, 25 Aug 2017 17:58:16 +0200 Subject: [PATCH] Fix general spelling errors --- client/js/libs/handlebars/ircmessageparser/findLinks.js | 2 +- client/js/socket-events/more.js | 2 +- client/js/socket-events/msg.js | 2 +- src/userLog.js | 2 +- test/client/js/libs/handlebars/ircmessageparser/findChannels.js | 2 +- test/client/js/libs/handlebars/ircmessageparser/parseStyle.js | 2 +- test/client/js/libs/handlebars/parse.js | 2 +- webpack.config.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/js/libs/handlebars/ircmessageparser/findLinks.js b/client/js/libs/handlebars/ircmessageparser/findLinks.js index cb8b03aa..50c442e6 100644 --- a/client/js/libs/handlebars/ircmessageparser/findLinks.js +++ b/client/js/libs/handlebars/ircmessageparser/findLinks.js @@ -29,7 +29,7 @@ function findLinks(text) { // Extract the scheme of the URL detected, if there is one parsedScheme = URI(url).scheme().toLowerCase(); } catch (e) { - // URI may throw an exception for malfored urls, + // URI may throw an exception for malformed urls, // as to why withinString finds these in the first place is a mystery return; } diff --git a/client/js/socket-events/more.js b/client/js/socket-events/more.js index b36be2dc..6383a83a 100644 --- a/client/js/socket-events/more.js +++ b/client/js/socket-events/more.js @@ -46,7 +46,7 @@ socket.on("more", function(data) { } // Date change detect - // Have to use data instaid of the documentFragment because it's being weird + // Have to use data instead of the documentFragment because it's being weird let lastDate; $(data.messages).each(function() { const msgData = this; diff --git a/client/js/socket-events/msg.js b/client/js/socket-events/msg.js index 44bf8081..38b5ebea 100644 --- a/client/js/socket-events/msg.js +++ b/client/js/socket-events/msg.js @@ -65,7 +65,7 @@ socket.on("msg", function(data) { if (activeChannelId !== targetId && container.find(".msg").slice(0, -100).remove().length) { channel.find(".show-more").addClass("show"); - // Remove date-seperators that would otherwise + // Remove date-separators that would otherwise // be "stuck" at the top of the channel channel.find(".date-marker-container").each(function() { if ($(this).next().hasClass("date-marker-container")) { diff --git a/src/userLog.js b/src/userLog.js index 4b3020f8..3d65bb9f 100644 --- a/src/userLog.js +++ b/src/userLog.js @@ -11,7 +11,7 @@ module.exports.write = function(user, network, chan, msg) { try { fsextra.ensureDirSync(path); } catch (e) { - log.error("Unabled to create logs directory", e); + log.error("Unable to create logs directory", e); return; } diff --git a/test/client/js/libs/handlebars/ircmessageparser/findChannels.js b/test/client/js/libs/handlebars/ircmessageparser/findChannels.js index 4c676e57..87663251 100644 --- a/test/client/js/libs/handlebars/ircmessageparser/findChannels.js +++ b/test/client/js/libs/handlebars/ircmessageparser/findChannels.js @@ -69,7 +69,7 @@ describe("findChannels", () => { expect(actual).to.deep.equal(expected); }); - it("should work with whois reponses", () => { + it("should work with whois responses", () => { const input = "@#a"; const expected = [{ channel: "#a", diff --git a/test/client/js/libs/handlebars/ircmessageparser/parseStyle.js b/test/client/js/libs/handlebars/ircmessageparser/parseStyle.js index e978cbcc..1e44fdc8 100644 --- a/test/client/js/libs/handlebars/ircmessageparser/parseStyle.js +++ b/test/client/js/libs/handlebars/ircmessageparser/parseStyle.js @@ -201,7 +201,7 @@ describe("parseStyle", () => { expect(actual).to.deep.equal(expected); }); - it("should carry state corretly forward", () => { + it("should carry state correctly forward", () => { const input = "\x02bold\x038yellow\x02nonBold\x03default"; const expected = [{ bold: true, diff --git a/test/client/js/libs/handlebars/parse.js b/test/client/js/libs/handlebars/parse.js index 3697a5ba..700d5fee 100644 --- a/test/client/js/libs/handlebars/parse.js +++ b/test/client/js/libs/handlebars/parse.js @@ -285,7 +285,7 @@ describe("parse Handlebars helper", () => { expect(actual).to.deep.equal(expected); }); - it("should trim commom protocols", () => { + it("should trim common protocols", () => { const testCases = [{ input: "like..http://example.com", expected: diff --git a/webpack.config.js b/webpack.config.js index f9702a6b..e1888588 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -62,7 +62,7 @@ const config = { plugins: [ // socket.io uses debug, we don't need it new webpack.NormalModuleReplacementPlugin(/debug/, path.resolve(__dirname, "scripts/noop.js")), - // automatically split all vendor dependancies into a separate bundle + // automatically split all vendor dependencies into a separate bundle new webpack.optimize.CommonsChunkPlugin({ name: "js/bundle.vendor.js", minChunks: (module) => module.context && module.context.indexOf("node_modules") !== -1