0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #1199 from pborreli/typos

Fixed typos
This commit is contained in:
John O'Nolan 2013-10-21 05:19:35 -07:00
commit cf9b5d9441
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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');

View file

@ -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': "</title></head><body><script>alert('blogtitle');</script>"}).save();
}).then(function (saved) {

View file

@ -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;