diff --git a/core/server/models/base.js b/core/server/models/base.js index 0b4276f84d..aa5e3f95c9 100644 --- a/core/server/models/base.js +++ b/core/server/models/base.js @@ -122,7 +122,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({ // Make the whole thing lowercase .toLowerCase(); - // Remove trailing hypen + // Remove trailing hyphen slug = slug.charAt(slug.length - 1) === '-' ? slug.substr(0, slug.length - 1) : slug; // Check the filtered slug doesn't match any of the reserved keywords slug = /^(ghost|ghost\-admin|admin|wp\-admin|wp\-login|dashboard|logout|login|signin|signup|signout|register|archive|archives|category|categories|tag|tags|page|pages|post|posts|user|users)$/g diff --git a/core/test/functional/admin/flow_test.js b/core/test/functional/admin/flow_test.js index 2162632e72..e3a2afcc6a 100644 --- a/core/test/functional/admin/flow_test.js +++ b/core/test/functional/admin/flow_test.js @@ -39,7 +39,7 @@ CasperTest.begin("Ghost edit draft flow works correctly", 8, function suite(test }); casper.thenClick('.post-edit').waitForResource(/editor/, function then() { - test.assertUrlMatch(/editor/, "Ghost sucessfully loaded the editor page again"); + test.assertUrlMatch(/editor/, "Ghost successfully loaded the editor page again"); }); casper.thenClick('.js-publish-button'); diff --git a/core/test/unit/model_posts_spec.js b/core/test/unit/model_posts_spec.js index 5652fe0bcb..e831d0598a 100644 --- a/core/test/unit/model_posts_spec.js +++ b/core/test/unit/model_posts_spec.js @@ -362,7 +362,7 @@ describe('Post Model', function () { }).then(null, done); }); - it('should santize the title', function (done) { + it('should sanitize the title', function (done) { new PostModel().fetch().then(function (model) { return model.set({'title': "
"}).save(); }).then(function (saved) { diff --git a/core/test/unit/model_tags_spec.js b/core/test/unit/model_tags_spec.js index 7dfaa93489..92d59ace78 100644 --- a/core/test/unit/model_tags_spec.js +++ b/core/test/unit/model_tags_spec.js @@ -119,7 +119,7 @@ describe('Tag Model', function () { }); } - it('does nothing if tags havent changed', function (done) { + it('does nothing if tags haven\'t changed', function (done) { var seededTagNames = ['tag1', 'tag2', 'tag3']; seedTags(seededTagNames).then(function (postModel) { @@ -160,7 +160,7 @@ describe('Tag Model', function () { }).then(null, done); }); - it('attaches tags that are new to the post, but aleady exist in the database', function (done) { + it('attaches tags that are new to the post, but already exist in the database', function (done) { var seededTagNames = ['tag1', 'tag2'], postModel;