Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#653 from jadh4v/fix-SR-t…
Browse files Browse the repository at this point in the history
…estdata-download

fix(SR-test-data): switch to file-level CID values
  • Loading branch information
thewtex authored Sep 29, 2022
2 parents 2fcf0cc + 09b1081 commit 93ad6f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export { default as WorkerPoolFunction } from './WorkerPoolFunction.js'
export { default as WorkerPoolProgressCallback } from './WorkerPoolProgressCallback.js'
export { default as WorkerPoolRunTasksResult } from './WorkerPoolRunTasksResult.js'

const version = '1.0.0-b.18';
export { version };
const version = '1.0.0-b.18'
export { version }
10 changes: 5 additions & 5 deletions src/core/internal/camelCase.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
function camelCase (kebobCase: string): string {
// make any alphabets that follows '-' an uppercase character, and remove the corresponding hyphen
let cameledParam = kebobCase.replace(/-([a-z])/g, (kk) => {
return kk[1].toUpperCase();
});
const cameledParam = kebobCase.replace(/-([a-z])/g, (kk) => {
return kk[1].toUpperCase()
})

// remove all non-alphanumeric characters
const outParam = cameledParam.replace(/([^0-9a-z])/ig, '')

// check if resulting string is empty
if(outParam === '') {
console.error(`Resulting string is empty.`)
if (outParam === '') {
console.error('Resulting string is empty.')
}
return outParam
}
Expand Down
2 changes: 1 addition & 1 deletion test/Input/104.1-SR-printed-to-pdf.dcm.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafybeicotyose3ijwdrfg756zywr3swu6r37672z55iuofnavmbr2k65gi
bafkreig3blddcxtvuv4a7qjtvvfrcgm5ubskm7ik3mlopnyzyoncasrgyq
2 changes: 1 addition & 1 deletion test/Input/88.67-radiation-dose-SR.dcm.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafybeidg3iito3z6dtpgwfuufgj4cgm2pte6f6gdbcvwlzs5fq35okzz4i
bafkreicdondblix2h5meriyvrqvrtdkxmxpbsqjlgm6s2psz53l435zvsu

0 comments on commit 93ad6f2

Please sign in to comment.