diff options
-rw-r--r-- | lib/longboat/raiders.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index cd93858..eb30612 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -9,7 +9,7 @@ module Longboat next unless Dir.exist?(dir) Dir.entries(dir).each do |file| - next unless file =~ /\A(?!:[^.]).*[^_].*\.rb\Z/ + next unless file =~ /\A(?![._])[a-zA-Z0-9]+(?:_[a-zA-Z0-9]+)*\.rb\Z/ reqname = File.basename(file, ".rb") cname = reqname.split('_').map(&:capitalize).join |