@hestia-earth/api 0.20.8 → 0.20.9
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.
|
@@ -185,6 +185,8 @@ var replaceInvalidChars = function (value) {
|
|
|
185
185
|
.replace(new RegExp("[^".concat(exports.validPathChars, "]"), 'g'), '')
|
|
186
186
|
.replace(/\^/g, '')
|
|
187
187
|
.replace(/\./g, '_')
|
|
188
|
+
.replace(new RegExp(Object.values(SupportedExtensions).map(function (v) { return "(_".concat(v, ")"); }).join('|'), 'g'), '')
|
|
189
|
+
.replace(/_$/g, '')
|
|
188
190
|
: null;
|
|
189
191
|
return newFilename
|
|
190
192
|
? (value === null || value === void 0 ? void 0 : value.includes('.'))
|