File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 19
19
Author => undef ,
20
20
' Comments-URI' => undef ,
21
21
License => undef ,
22
+ ' License-Code' => undef ,
22
23
' Post-History' => undef ,
23
24
);
24
25
my %DateField = (
149
150
} elsif ($field eq 'Layer') { # BIP 123
150
151
die "Invalid layer $val in $fn " unless exists $ValidLayer {$val };
151
152
$layer = $val ;
152
- } elsif ($field eq ' License' ) {
153
+ } elsif ($field =~ /^ License(?: \- Code)? $/ ) {
153
154
die "Undefined license $val in $fn " unless exists $DefinedLicenses {$val };
154
- if (not $found {License }) {
155
+ if (not $found {$field }) {
155
156
die "Unacceptable license $val in $fn " unless exists $AcceptableLicenses {$val } or ($val eq 'PD' and exists $GrandfatheredPD {$bipnum });
156
157
}
157
158
} elsif ($field eq 'Comments-URI') {
You can’t perform that action at this time.
0 commit comments