Skip to content

Commit 52ed74a

Browse files
committed
1.0.4
1 parent 356b1b5 commit 52ed74a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ncardez/is",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Data type checker",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,13 @@ class Is {
307307
return false;
308308
}
309309

310-
jwt(value?: string|any): boolean {
311-
if (this.string(value) &&
312-
!this.empty(value) &&
313-
value.includes('.') &&
314-
value.match(/\./g).length === 2) {
310+
jwt(value?: string | any): boolean {
311+
if (
312+
this.string(value) &&
313+
!this.empty(value) &&
314+
value.includes('.') &&
315+
value.match(/\./g).length === 2
316+
) {
315317
const groups = value.split('.');
316318
if (this.array(groups) && !this.empty(groups) && groups.length === 3) {
317319
if (value.length > 100) {

0 commit comments

Comments
 (0)