Skip to content

Commit f6d529b

Browse files
committed
1 parent ab44bcf commit f6d529b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-pre-commit/checks/spell_check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def check(staged, not_staged, site, args)
77
staged.each do |post|
88
rendered = Jekyll::Renderer.new(site, post).run
99
rendered.gsub!('"', '\"')
10-
mispells = `echo "#{rendered}" | aspell list -H --add-html-skip=pre --add-html-skip=code`
10+
mispells = `echo "#{rendered}" | sed "s/’/'/g" | aspell list -H --add-html-skip=pre --add-html-skip=code`
1111
puts mispells
1212
end
1313
exit 1

0 commit comments

Comments
 (0)