EntryFilter#special?: ignore filenames which begin with '~'

This commit is contained in:
Parker Moore 2016-02-07 17:28:03 -08:00
parent 2d0c572d29
commit 3373eb6525
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
module Jekyll
class EntryFilter
SPECIAL_LEADING_CHARACTERS = ['.', '_', '#'].freeze
SPECIAL_LEADING_CHARACTERS = ['.', '_', '#', '~'].freeze
attr_reader :site

View File

@ -8,7 +8,7 @@ class TestEntryFilter < JekyllUnitTest
should "filter entries" do
ent1 = %w[foo.markdown bar.markdown baz.markdown #baz.markdown#
.baz.markdow foo.markdown~ .htaccess _posts _pages]
.baz.markdow foo.markdown~ .htaccess _posts _pages ~$benbalter.docx]
entries = EntryFilter.new(@site).filter(ent1)
assert_equal %w[foo.markdown bar.markdown baz.markdown .htaccess], entries