typestack / class-validator

Decorator-based property validation for classes.
MIT License
10.92k stars 787 forks source link

fix: `isUrl` fails for URLs that do not use domain suffixes #2518

Closed Woodz closed 4 weeks ago

Woodz commented 1 month ago

Description

The following is a valid URL (according to w3c) but fails validation:

Minimal code-snippet showcasing the problem

Expected behavior

Actual behavior

braaar commented 4 weeks ago

This issue belongs in the upstream validator.js library