From 7003b0030e72355cacc94b339363983b1f1180b0 Mon Sep 17 00:00:00 2001 From: Atlas Cove Date: Fri, 27 Oct 2023 14:56:04 +0100 Subject: [PATCH] fix pfiles.rb forgot the '?' --- pfiles.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pfiles.rb b/pfiles.rb index b44b866..e06b71b 100755 --- a/pfiles.rb +++ b/pfiles.rb @@ -4,9 +4,7 @@ require 'find' ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt') if ignore != [] - ignore.map! do |i| - "in/#{i}" - end + ignore.map! { |i| "in/#{i}" } end class Enumerator def collect @@ -47,7 +45,7 @@ when "dir" when "rest" for i in l do next if ignore.include?(i) - unless /\.(s[ac]ss|txti|org|md)$/.match?(i) or File.directory(i) + unless /\.(s[ac]ss|txti|org|md|html)$/.match?(i) or File.directory?(i) print i print ' ' unless i==l.last end