@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.cjs CHANGED
@@ -59,7 +59,7 @@ let node_zlib = require("node:zlib");
59
59
  * When `pascal` is `true` the first word is also capitalized (PascalCase), otherwise only subsequent words are.
60
60
  */
61
61
  function convert(text, pascal) {
62
- 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) => {
62
+ 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) => {
63
63
  if (word.length > 1 && word === word.toUpperCase()) return word;
64
64
  return (i === 0 && !pascal ? word.charAt(0).toLowerCase() : word.charAt(0).toUpperCase()) + word.slice(1);
65
65
  }).join("").replace(/[^a-zA-Z0-9]/g, "");
@@ -234,7 +234,7 @@ function getElapsedMs(hrStart) {
234
234
  return Math.round(ms * 100) / 100;
235
235
  }
236
236
  // package.json
237
- var version = "5.18.0";
237
+ var version = "5.18.1";
238
238
  // ../../internals/shared/src/constants.ts
239
239
  /**
240
240
  * Extensions `kubb` ships at its own version, so they count as installed without being a direct