@koine/utils 2.0.0-beta.29 → 2.0.0-beta.30

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isNumericLiteral = void 0;
4
4
  function isNumericLiteral(payload) {
5
- return /^[0-9]+.{0,1}[0-9]+$/.test(payload);
5
+ return /^[0-9]+.{0,1}[0-9]+|[0-9]$/.test(payload);
6
6
  }
7
7
  exports.isNumericLiteral = isNumericLiteral;
8
8
  exports.default = isNumericLiteral;
@@ -1,4 +1,4 @@
1
1
  export function isNumericLiteral(payload) {
2
- return /^[0-9]+.{0,1}[0-9]+$/.test(payload);
2
+ return /^[0-9]+.{0,1}[0-9]+|[0-9]$/.test(payload);
3
3
  }
4
4
  export default isNumericLiteral;
package/package.json CHANGED
@@ -594,5 +594,5 @@
594
594
  "peerDependencies": {
595
595
  "type-fest": "^4.9.0"
596
596
  },
597
- "version": "2.0.0-beta.29"
597
+ "version": "2.0.0-beta.30"
598
598
  }