@kubb/studio 5.18.0 → 5.18.1

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/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import { gzipSync } from "node:zlib";
31
31
  * When `pascal` is `true` the first word is also capitalized (PascalCase), otherwise only subsequent words are.
32
32
  */
33
33
  function convert(text, pascal) {
34
- return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
34
+ return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)(?!xx(?![a-z]))([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
35
35
  if (word.length > 1 && word === word.toUpperCase()) return word;
36
36
  return (i === 0 && !pascal ? word.charAt(0).toLowerCase() : word.charAt(0).toUpperCase()) + word.slice(1);
37
37
  }).join("").replace(/[^a-zA-Z0-9]/g, "");
@@ -206,7 +206,7 @@ function getElapsedMs(hrStart) {
206
206
  return Math.round(ms * 100) / 100;
207
207
  }
208
208
  // package.json
209
- var version = "5.18.0";
209
+ var version = "5.18.1";
210
210
  // ../../internals/shared/src/constants.ts
211
211
  /**
212
212
  * Extensions `kubb` ships at its own version, so they count as installed without being a direct