Comparing version 16.1.6 to 16.1.7
@@ -196,2 +196,3 @@ 'use strict'; | ||
const original = value; | ||
if (typeof value === 'string' && | ||
@@ -214,3 +215,3 @@ /^[+-]?\d+(\.\d+)?$/.test(value)) { | ||
if (typeof value === 'string') { | ||
if (typeof original === 'string') { | ||
return null; | ||
@@ -217,0 +218,0 @@ } |
{ | ||
"name": "@hapi/joi", | ||
"description": "Object schema validation", | ||
"version": "16.1.6", | ||
"version": "16.1.7", | ||
"repository": "git://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
445402
7657