do not check if the host is valid if no host is specified and not require_host by mortbauer · Pull Request #1995 · validatorjs/validator.js
Fix the isURL check to not check the host if the host part is empty and require_host is false
This PR fixes isse #1994
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)
This was referenced
Jun 3, 2024This was referenced
Jun 12, 2024This was referenced
Jun 14, 2024This was referenced
Jun 21, 2024This was referenced
Jul 10, 2024This was referenced
Jul 19, 2024This was referenced
Aug 30, 2024This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters