replace simple regex with a native Ruby method (#6732)

Merge pull request 6732
This commit is contained in:
ashmaroli 2018-02-01 02:25:55 +05:30 committed by jekyllbot
parent 23491541f6
commit bc06e241ea
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ module Jekyll
dot_dirs.each do |file|
dir_path = site.in_source_dir(dir, file)
rel_path = File.join(dir, file)
unless @site.dest.sub(%r!/$!, "") == dir_path
unless @site.dest.chomp("/") == dir_path
@site.reader.read_directories(rel_path)
end
end