lib/textpow.rb in textpow1x-1.2.3 vs lib/textpow.rb in textpow1x-1.2.4
- old
+ new
@@ -42,9 +42,9 @@
path = Dir.glob(File.join(syntax_path, "*.#{name}.*")).sort_by(&:size).first
path if path and File.exist?(path)
end
def self.find_syntax_by_path(path)
- path if File.exist?(path)
+ path if File.file?(path)
end
end