js-style-kit 0.8.0 → 0.8.2

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.
@@ -2658,7 +2658,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2658
2658
  return arg.length > 1 && arg[0] === "-";
2659
2659
  }
2660
2660
  const negativeNumberArg = (arg) => {
2661
- if (!/^-\d*\.?\d+(e[+-]?\d+)?$/.test(arg)) return false;
2661
+ if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
2662
2662
  return !this._getCommandAndAncestors().some(
2663
2663
  (cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
2664
2664
  );