Fix regexp

This commit is contained in:
Adam Stankiewicz 2019-03-10 19:11:11 +01:00
parent 0475f2b8d1
commit 8b3a563bd0

View File

@ -10,7 +10,7 @@ describe "My Vim plugin" do
extensions = extensions.split(/[\n,]/) extensions = extensions.split(/[\n,]/)
extensions.each do |ext| extensions.each do |ext|
if ext.match?(/[a-z\.]+/i) if ext.match?(/^[a-z\.]+$/i)
it "should parse #{ext} file" do it "should parse #{ext} file" do
Timeout::timeout(20) do Timeout::timeout(20) do
write_file "#{ext}", "" write_file "#{ext}", ""