-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isIP 存在冗余代码 #1962
Labels
Comments
UnKnoWn-Consortium
added a commit
to UnKnoWn-Consortium/validator.js
that referenced
this issue
May 16, 2022
UnKnoWn-Consortium
added a commit
to UnKnoWn-Consortium/validator.js
that referenced
this issue
May 16, 2022
Refactor: removed unnecessary !! Closes validatorjs#1962
UnKnoWn-Consortium
added a commit
to UnKnoWn-Consortium/validator.js
that referenced
this issue
May 16, 2022
refactor(isIP): removed redundant !! Closes validatorjs#1962
UnKnoWn-Consortium
added a commit
to UnKnoWn-Consortium/validator.js
that referenced
this issue
May 16, 2022
refactor(isIP): removed redundant !! Closes validatorjs#1962
1 task
Indeed the two statements are redundant. From If you like you can create yours and I will retract mine. |
This was referenced Jun 3, 2024
This was referenced Jun 14, 2024
This was referenced Jun 18, 2024
This was referenced Jun 28, 2024
This was referenced Jul 10, 2024
This was referenced Jul 19, 2024
This was referenced Aug 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
https://github.com/validatorjs/validator.js/blob/master/src/lib/isIP.js#L57
请教一下,这两句代码的意义?
上面正则已经严格控制,一定是数字且会小于255
Examples
If applicable, add screenshots to help explain your problem.
Additional context
Validator.js version:
Node.js version:
OS platform: [windows, linux, macOS, etc]
The text was updated successfully, but these errors were encountered: