Use String#end_with? to check if entry is a backup (#7701)
Merge pull request 7701
This commit is contained in:
parent
2736589ba1
commit
8035a3e153
|
@ -53,7 +53,7 @@ module Jekyll
|
|||
end
|
||||
|
||||
def backup?(entry)
|
||||
entry[-1..-1] == "~"
|
||||
entry.end_with?("~")
|
||||
end
|
||||
|
||||
def excluded?(entry)
|
||||
|
|
Loading…
Reference in New Issue