Skip to content

Commit a102971

Browse files
committed
makedef.pl: Refactor $variable initialization
This is so the string doesn't have to be repeated
1 parent 1fe89d2 commit a102971

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

makedef.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,9 @@ sub readvar {
794794
{
795795
my %seen;
796796
my ($embed_array) = setup_embed($ARGS{TARG_DIR});
797-
my $excludedre = $define{'NO_MATHOMS'} ? qr/[emiIsb]/ : qr/[emiIs]/;
797+
my $excludedre = 'eiIms';
798+
$excludedre .= 'b' if $define{'NO_MATHOMS'};
799+
$excludedre = qr/[$excludedre]/;
798800

799801
foreach my $entry (@$embed_array) {
800802
my $embed= $entry->{embed}

0 commit comments

Comments
 (0)