Skip to content

FullUrl regex needs improvement #138

@junaid-ali

Description

@junaid-ali

Describe the bug

Currently, fullUrl returns invalid URLs as valid ones. Same is the case with Url. We should improve the regex like here:
https://github.com/asaskevich/govalidator/blob/master/patterns.go#L41

Examples:

https://www.googl_?e.com/testme
https://www
https://not%23

To Reproduce

Add the above invalid URLs to TestIsFullURL function, the tests will pass.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions