Commit bf5dde446ee4a98145305494f09fe88383744c0e
1 parent
6ed4dffbff
Exists in
master
Replace space on SN with dash
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
partner-komodo.js
... | ... | @@ -135,7 +135,11 @@ function processPartnerResponse(resObj, task) { |
135 | 135 | |
136 | 136 | let st24Message = resObj.message; |
137 | 137 | if (resObj.sn) { |
138 | - st24Message = 'SN=' + resObj.sn + '; ' + st24Message; | |
138 | + let sn = resObj.sn; | |
139 | + if (sn.indexOf('/') >= 0) { | |
140 | + sn = sn.trim().replace(/[\s-]+/g, '-'); | |
141 | + } | |
142 | + st24Message = 'SN=' + sn + '; ' + st24Message; | |
139 | 143 | } |
140 | 144 | |
141 | 145 | callbackReport(resObj.request_id, st24Rc, st24Message, {task: task}); |