Merge pull request #1458 from PolarizedIons/spell-check

Fix general spelling errors
This commit is contained in:
Pavel Djundik 2017-08-25 19:13:04 +03:00 committed by GitHub
commit 6ba2b8a3d1
8 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ function findLinks(text) {
// Extract the scheme of the URL detected, if there is one // Extract the scheme of the URL detected, if there is one
parsedScheme = URI(url).scheme().toLowerCase(); parsedScheme = URI(url).scheme().toLowerCase();
} catch (e) { } 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 // as to why withinString finds these in the first place is a mystery
return; return;
} }

View File

@ -46,7 +46,7 @@ socket.on("more", function(data) {
} }
// Date change detect // 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; let lastDate;
$(data.messages).each(function() { $(data.messages).each(function() {
const msgData = this; const msgData = this;

View File

@ -65,7 +65,7 @@ socket.on("msg", function(data) {
if (activeChannelId !== targetId && container.find(".msg").slice(0, -100).remove().length) { if (activeChannelId !== targetId && container.find(".msg").slice(0, -100).remove().length) {
channel.find(".show-more").addClass("show"); 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 // be "stuck" at the top of the channel
channel.find(".date-marker-container").each(function() { channel.find(".date-marker-container").each(function() {
if ($(this).next().hasClass("date-marker-container")) { if ($(this).next().hasClass("date-marker-container")) {

View File

@ -11,7 +11,7 @@ module.exports.write = function(user, network, chan, msg) {
try { try {
fsextra.ensureDirSync(path); fsextra.ensureDirSync(path);
} catch (e) { } catch (e) {
log.error("Unabled to create logs directory", e); log.error("Unable to create logs directory", e);
return; return;
} }

View File

@ -69,7 +69,7 @@ describe("findChannels", () => {
expect(actual).to.deep.equal(expected); expect(actual).to.deep.equal(expected);
}); });
it("should work with whois reponses", () => { it("should work with whois responses", () => {
const input = "@#a"; const input = "@#a";
const expected = [{ const expected = [{
channel: "#a", channel: "#a",

View File

@ -201,7 +201,7 @@ describe("parseStyle", () => {
expect(actual).to.deep.equal(expected); 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 input = "\x02bold\x038yellow\x02nonBold\x03default";
const expected = [{ const expected = [{
bold: true, bold: true,

View File

@ -285,7 +285,7 @@ describe("parse Handlebars helper", () => {
expect(actual).to.deep.equal(expected); expect(actual).to.deep.equal(expected);
}); });
it("should trim commom protocols", () => { it("should trim common protocols", () => {
const testCases = [{ const testCases = [{
input: "like..http://example.com", input: "like..http://example.com",
expected: expected:

View File

@ -62,7 +62,7 @@ const config = {
plugins: [ plugins: [
// socket.io uses debug, we don't need it // socket.io uses debug, we don't need it
new webpack.NormalModuleReplacementPlugin(/debug/, path.resolve(__dirname, "scripts/noop.js")), 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({ new webpack.optimize.CommonsChunkPlugin({
name: "js/bundle.vendor.js", name: "js/bundle.vendor.js",
minChunks: (module) => module.context && module.context.indexOf("node_modules") !== -1 minChunks: (module) => module.context && module.context.indexOf("node_modules") !== -1