Fix regexp
This commit is contained in:
parent
0475f2b8d1
commit
8b3a563bd0
@ -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}", ""
|
||||||
|
Loading…
Reference in New Issue
Block a user