From 8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 10 Mar 2019 19:11:11 +0100 Subject: [PATCH] Fix regexp --- spec/loading_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index ec4f726..4d78f53 100644 --- a/spec/loading_spec.rb +++ b/spec/loading_spec.rb @@ -10,7 +10,7 @@ describe "My Vim plugin" do extensions = extensions.split(/[\n,]/) extensions.each do |ext| - if ext.match?(/[a-z\.]+/i) + if ext.match?(/^[a-z\.]+$/i) it "should parse #{ext} file" do Timeout::timeout(20) do write_file "#{ext}", ""