Skip to content

Commit

Permalink
Update StringfiableExtension.pm
Browse files Browse the repository at this point in the history
Simplify element_stringify
  • Loading branch information
mohawk2 committed Nov 4, 2024
1 parent 1775a63 commit 0cd27e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/PDL/StringfiableExtension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use List::AllUtils ();
return $_pdl_stringify_temp_single->set(0, $element)->string;
}
# otherwise
my $string = $_pdl_stringify_temp->set(0,0, $element)->string;
( $_pdl_stringify_temp->string =~ /\[(.*)\]/ )[0];
( $_pdl_stringify_temp->set(0,0, $element)->string =~ /\[(.*)\]/ )[0];
}
}

Expand Down

0 comments on commit 0cd27e0

Please sign in to comment.