Skip to content

Commit

Permalink
spell check fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 16, 2018
1 parent 51105f8 commit 17076a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions Rakefile
Expand Up @@ -23,7 +23,7 @@ task default: [
:spell,
:regex,
:excerpts,
# :snippets,
:snippets,
:orphans,
# :ping,
# :jslint,
Expand Down Expand Up @@ -172,10 +172,10 @@ task spell: [:build] do
.gsub(/[\n\r\t ]+/, ' ')
.gsub(/&[a-z]+;/, ' ')
.gsub(/&#[0-9]+;/, ' ')
.gsub(/n't/, ' not')
.gsub(/'ll/, ' will')
.gsub(/'ve/, ' have')
.gsub(/'s/, ' ')
.gsub(/n[’']t/, ' not')
.gsub(/[’']ll/, ' will')
.gsub(/[’']ve/, ' have')
.gsub(/[’']s/, ' ')
.gsub(/[,:;<>?!-#$%^&@]+/, ' ')
tmp << text
tmp.flush
Expand All @@ -188,6 +188,8 @@ task spell: [:build] do
else
puts "Typos in #{f}:"
puts stdout
puts text
exit
end
total + stdout.split("\n").size
end
Expand Down
2 changes: 1 addition & 1 deletion _drafts/_diversity.md
Expand Up @@ -22,7 +22,7 @@ the eleventh World Chess Champion, was one of the best chess players
of the last century. Did you know that,
among [anti-semitic statements](https://en.wikiquote.org/wiki/Bobby_Fischer),
[he said](https://www.theguardian.com/books/2007/apr/22/sportandleisure.features)
that women chess players "aren't creative and are all fish?"
that women chess players "arent creative and are all fish?"
Did you know that he publicly described the
[9/11 events](https://en.wikipedia.org/wiki/September_11_attacks) as "wonderful news"?

Expand Down
4 changes: 3 additions & 1 deletion _plugins/movies.rb
Expand Up @@ -16,7 +16,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

module Jekyll
module Yegor
module Filters
def movies_count(posts)
with_movies(posts).size
Expand All @@ -38,3 +38,5 @@ def with_movies(posts)
end
end
end

Liquid::Template.register_filter(Yegor::Filters)

0 comments on commit 17076a4

Please sign in to comment.