@nebularstreams/libmui 2.5.66 → 2.5.68
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.
package/package.json
CHANGED
|
@@ -221,7 +221,8 @@ const
|
|
|
221
221
|
REGEX_NODOTS = /[^0-9A-Z-]+/gi;
|
|
222
222
|
|
|
223
223
|
function sanitizeFilename(filename, withDots = true) {
|
|
224
|
-
|
|
224
|
+
// EDGE CASE -> NO DOT AT THE END
|
|
225
|
+
withDots = withDots && !filename?.endsWith(".");
|
|
225
226
|
return filename ? filename.trim()
|
|
226
227
|
.toLowerCase()
|
|
227
228
|
.replace(withDots ? REGEX_DOTS : REGEX_NODOTS, "") : null;
|
|
@@ -485,8 +485,8 @@ const
|
|
|
485
485
|
oninput: () => {
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
|
-
multi: metaDef.multi,
|
|
489
|
-
alwaysmulti: metaDef.alwaysmulti,
|
|
488
|
+
multi: isJson || metaDef.multi,
|
|
489
|
+
alwaysmulti: isJson || metaDef.alwaysmulti,
|
|
490
490
|
onchange: (value) => {
|
|
491
491
|
set(value);
|
|
492
492
|
onchange(UPDATECODE, targetParameters, metaKey, undefined, metaDef);
|