summaryrefslogtreecommitdiffstats
path: root/spec/loading_spec.rb
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-10 19:11:11 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-10 19:11:11 +0100
commit8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec (patch)
tree25490996e31d9b1e2399e893a6d8ac66eb1728b9 /spec/loading_spec.rb
parent0475f2b8d193fa2e69752f7ed40b381c54f858c9 (diff)
downloadvim-polyglot-8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec.tar.gz
vim-polyglot-8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec.zip
Fix regexp
Diffstat (limited to 'spec/loading_spec.rb')
-rw-r--r--spec/loading_spec.rb2
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}", ""