Skip to content

Commit 291cbbf

Browse files
committed
optlib2c: limit the chars acceptable as parts of a table name in --_mtable-extend option
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent c04f837 commit 291cbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/optlib2c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ my $options =
282282
unless ($_[0]->{'langdef'} eq $1);
283283
return parse_regex ($3, $_[0], 1, $2);
284284
} ],
285-
[ qr/^--_mtable-extend-([^=]*)=(.*)\+(.*)/, sub {
285+
[ qr/^--_mtable-extend-([^=]*)=([a-zA-Z_0-9]+)\+([a-zA-Z_0-9]+)/, sub {
286286
die "Don't use --_mline-extend-<LANG>= option before defining the language"
287287
if (! defined $_[0]->{'langdef'});
288288
die "Extending a multitable regex is allowed only to the language specified with --langdef: $1"

0 commit comments

Comments
 (0)