mirror of
https://github.com/github/choosealicense.com
synced 2024-12-21 12:20:10 +01:00
match _ fields, require preceding space (ex CECILL-2.1)
This commit is contained in:
parent
d7bf3ac98a
commit
316bd0b828
@ -6,7 +6,7 @@ describe 'license fillable fields' do
|
||||
licenses.each do |license|
|
||||
context "The #{license['title']} license" do
|
||||
it 'should only contain supported fillable fields' do
|
||||
matches = license['content'][0, 1000].scan(/\[([a-z]+)\]/)
|
||||
matches = license['content'][1, 1000].scan(/\s+\[([a-z_]+)\]/)
|
||||
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
|
||||
expect(extra_fields).to be_empty
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user