@nebularstreams/libmui 2.5.66 → 2.5.67

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.66",
4
+ "version": "2.5.67",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -221,7 +221,7 @@ const
221
221
  REGEX_NODOTS = /[^0-9A-Z-]+/gi;
222
222
 
223
223
  function sanitizeFilename(filename, withDots = true) {
224
- withDots = withDots || filename?.endsWith(".");
224
+ withDots = withDots && !filename?.endsWith(".");
225
225
  return filename ? filename.trim()
226
226
  .toLowerCase()
227
227
  .replace(withDots ? REGEX_DOTS : REGEX_NODOTS, "") : null;