code7-leia 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2203,7 +2203,7 @@ function uploadFilesSaga(action) {
2203
2203
  _action$payload4 = action.payload, id = _action$payload4.id, file = _action$payload4.file, pressets = _action$payload4.pressets, token = _action$payload4.token;
2204
2204
  blob = new Blob([file.content]);
2205
2205
  formData = new FormData();
2206
- sanitizedPath = file.properties.path.replace(/^\/+|\/+$/g, '');
2206
+ sanitizedPath = file.properties.path.replace(/^(\.\/|\/+)|\/+$/g, '');
2207
2207
  console.log('sanitizedPath: ', sanitizedPath);
2208
2208
  formData.append('file', blob, sanitizedPath || 'default_filename');
2209
2209
  console.log('formData: ', formData);