Allow lists without brackets

master
Ben Moon 2016-05-23 14:16:07 +01:00
parent f379ce0d39
commit 408c76f2a2
2 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,7 @@ sub remove_parens {
$text =~ s/^$opening(.*?)$closing$/$1/;
return $text;
}
return $text if is_conj($text);
return;
return $text;
}
sub trim_whitespace {

View File

@ -26,6 +26,7 @@ subtest parse_list => sub {
'[' => ']',
'{' => '}',
'(' => ')',
'' => '',
);
while (my ($open, $close) = each %brackets) {
my $test_list = "${open}1, 2, 3$close";