Skip to content
Permalink
Browse files

Use String#end_with? to check if entry is a backup (#7701)

Merge pull request 7701
  • Loading branch information...
ashmaroli authored and jekyllbot committed Aug 4, 2019
1 parent 2736589 commit 8035a3e153cee4ee48af3dda46f3472c8b524d2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/entry_filter.rb
@@ -53,7 +53,7 @@ def special?(entry)
end

def backup?(entry)
entry[-1..-1] == "~"
entry.end_with?("~")
end

def excluded?(entry)

0 comments on commit 8035a3e

Please sign in to comment.
You can’t perform that action at this time.