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

Merge pull request 7701
This commit is contained in:
Ashwin Maroli 2019-08-05 01:41:12 +05:30 committed by jekyllbot
parent 2736589ba1
commit 8035a3e153
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ module Jekyll
end
def backup?(entry)
entry[-1..-1] == "~"
entry.end_with?("~")
end
def excluded?(entry)