diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 19:11:11 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 19:11:11 +0100 |
commit | 8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec (patch) | |
tree | 25490996e31d9b1e2399e893a6d8ac66eb1728b9 /spec/loading_spec.rb | |
parent | 0475f2b8d193fa2e69752f7ed40b381c54f858c9 (diff) | |
download | vim-polyglot-8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec.tar.gz vim-polyglot-8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec.zip |
Fix regexp
Diffstat (limited to 'spec/loading_spec.rb')
-rw-r--r-- | spec/loading_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index ec4f7262..4d78f531 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}", "" |