Skip to content

Commit

Permalink
feat: 更新 is() 方法,可以判断 ID number 格式的字符串;
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohaixiao committed Feb 9, 2025
1 parent 761df4e commit dbfe95f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion is.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ import typeOfObject from './utils/typeOfObject'
* is('') // -> empty
* is('3C8021B0-423D-475D-BECF-63ED5ED34563') // -> guid
* is('3C8021B0423D475DBECF63ED5ED34563') // -> guid
* is('110105491231002') // -> ID number
* is('11010519491231002X') // -> ID number
* is('#ffffff') // -> hex
* is('<h2>中国梦</h2>') // -> html
* isIPAddress('126.11.15.255') // -> IP address
* is('126.11.15.255') // -> IP address
* is('{"prop":"JSON"}') // -> json
* is('11:23 am') // -> time
* is('Jul 08 2023') // -> time
Expand Down

0 comments on commit dbfe95f

Please sign in to comment.