Skip to content

Commit

Permalink
[Config] Only match metadata dirs that start with a number.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy authored and Watson1978 committed Oct 2, 2014
1 parent 84f761e commit 782bdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/motion/project/config.rb
Expand Up @@ -135,7 +135,7 @@ def validate
end

def supported_versions
@supported_versions ||= Dir.glob(File.join(motiondir, 'data', template.to_s, '*')).select{|path| File.directory?(path)}.map do |path|
@supported_versions ||= Dir.glob(File.join(motiondir, 'data', template.to_s, '[1-9]*')).select{|path| File.directory?(path)}.map do |path|
File.basename path
end
end
Expand Down

0 comments on commit 782bdb1

Please sign in to comment.