Skip to content

Commit

Permalink
fix(dcm2jsonC): dicom json from dcmtk convertor will get u0000 that…
Browse files Browse the repository at this point in the history
… cause error
  • Loading branch information
Chinlinlee committed Jan 14, 2022
1 parent 16b6303 commit badab2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/dcmtk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const dcm2jsonV8 = {
return new Promise((resolve) => {
try {
dcm2jsonC(dcmfile , function (data) {
data = data.replace(/,\\u0000/g, '');
data = data.replace(/\\u0000/g, '');
let obj = JSON.parse(data);
return resolve(obj);
})
Expand Down

0 comments on commit badab2d

Please sign in to comment.