Skip to content

Commit

Permalink
more general fix for hanging commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory McNicholl committed Jun 21, 2018
1 parent 244ffb7 commit c6a89c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl_lib/EPrints/Plugin/Export/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ sub _epdata_to_json

#strip any commas hanging round at the end of the string (after we have expunged the non-exportable subs, this may happen)
$json_str =~ s/\n,\n/\n/m;

$json_str =~ s/,\n$//m;
return $json_str;
}
elsif( $epdata->isa( "EPrints::DataObj" ) )
Expand Down

0 comments on commit c6a89c4

Please sign in to comment.