Skip to content

Commit

Permalink
Merge 58c9018 into 8e54736
Browse files Browse the repository at this point in the history
  • Loading branch information
cKlee committed Jun 1, 2016
2 parents 8e54736 + 58c9018 commit f3b8f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Catmandu/Fix/Inline/marc_map.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sub marc_map {
my $pluck = $opts{'-pluck'};
my $attrs = {};

if ($marc_path =~ /(\S{3})(\[(.)?,?(.)?\])?([_a-z0-9^]+)?(\/(\d+)(-(\d+))?)?/) {
if ($marc_path =~ /(\S{3})(\[([^,])?,?([^,])?\])?([_a-z0-9^]+)?(\/(\d+)(-(\d+))?)?/) {
$attrs->{field} = $1;
$attrs->{ind1} = $3;
$attrs->{ind2} = $4;
Expand Down

0 comments on commit f3b8f4e

Please sign in to comment.