Commit eae16d143fcfe51522b982038b0fef2b064e370c
1 parent
593ada1205
Exists in
master
replace space in token to dash
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
partner-simplepay.js
... | ... | @@ -128,6 +128,10 @@ function _composeCompleteSn(responseDataObj) { |
128 | 128 | total_kwh: _getPropertyFromObjectSafe(info, 'size') |
129 | 129 | } |
130 | 130 | |
131 | + if (cleanedData.token) { | |
132 | + cleanedData.token = cleanedData.token.replace(/ /g, '-'); | |
133 | + } | |
134 | + | |
131 | 135 | if (cleanedData.cust_name) { |
132 | 136 | cleanedData.cust_name = cleanedData.cust_name.replace(/\W+/g, ' ').trim().replace(/\W+/g, '-').toUpperCase(); |
133 | 137 | } |