Comments (6)
This is a duplicate of #1875
The spaces in the URL should have been encoded to '%20' but not all have, causing the validator to (in my opinion correctly) return false.
Btw; When I got a notification about this issue in my mail, Gmail on Android also did not recognize it as a valid URL.
from validator.js.
thanks, I agree with you..
from validator.js.
@WikiRik This is another example form google, that validator.js showing as invalid. It doesn't have space.
JSFiddle: https://jsfiddle.net/sisir/uj6ywev9/
URL:
https://www.google.com/localservices/prolist?g2lbs=AIQllVwJHUEZa2n1HMgVvZN2pJQMN8LhNEPrYKD_Bn_PajSeRO8C-Mgag8GBQEUNR9_WIGmbmG7vsZv5IvHmPxJCn4EyxEdqaOr8JnMW1g379VwR51TgEeqLocMQWR8h8CbkyUWMbzvgkAi5lAa8-Z5ipjm37kn9R7xEigKjyZcZOm_NyIgNPmM%3D&hl=en-US&gl=us&cs=1&ssta=1&q=damp%20solving%20water%20and%20mold%20removal%20orlando%20fl&oq=damp%20solving%20water%20and%20mold%20removal%20fl&slp=MgA6HENoTUk0TWVKcWZYOWd3TVY2NEZRQmgwUWRRQU9SAggCYAB61gNDaVprWVcxd0lITnZiSFpwYm1jZ2QyRjBaWElnWVc1a0lHMXZiR1FnY21WdGIzWmhiQ0JtYkVpMDJ2LUhyYkdBZ0FoYVJoQUFFQUVRQWhBREVBUVFCUmdBR0FFWUFoZ0VHQVVZQmlJbVpHRnRjQ0J6YjJ4MmFXNW5JSGRoZEdWeUlHRnVaQ0J0YjJ4a0lISmxiVzkyWVd3Z1ptd3FCQWdERUFXU0FTQjNZWFJsY2w5a1lXMWhaMlZmY21WemRHOXlZWFJwYjI1ZmMyVnlkbWxqWlpvQkkwTm9Xa1JUVldoT1RVYzVibE13VmtwUk1FWnVVMVZTVjJGcVZqRmlSMVp1UlVGRnFnR1dBUW9JTDIwdk1EZ3pPR1lLQ0M5dEx6QXllSEo1Q2dndmJTOHdaR3Q0YlJBQktpY2lJMlJoYlhBZ2MyOXNkbWx1WnlCM1lYUmxjaUJoYm1RZ2JXOXNaQ0J5WlcxdmRtRnNL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FtcCBzb2x2aW5nIHdhdGVyIGFuZCBtb2xkIHJlbW92YWwiJmRhbXAgc29sdmluZyB3YXRlciBhbmQgbW9sZCByZW1vdmFsIGZsKiBXYXRlciBkYW1hZ2UgcmVzdG9yYXRpb24gc2VydmljZToCMAI%3D
Is there a way to find out why it is failing?
from validator.js.
You can just debug it, but I expect the URL is too long and therefore marked as invalid
from validator.js.
okay, I did a test with php, and it passed as valid:
if (filter_var($url, FILTER_VALIDATE_URL)) {
echo("$url is a valid URL");
} else {
echo("$url is not a valid URL");
}
from validator.js.
Thank you for the hint, I see there is a limit for url length. I have set validate_length
to false. now it is working.
from validator.js.
Related Issues (20)
- isLocale doesn't work anymore (returns true on wrong locals) HOT 4
- Add support uuid v7 for `isUUID` HOT 3
- The isDate function returns false for some timezones (e.g. North American time zones) HOT 2
- fix: Date is not validated as expected HOT 3
- Email validator accepts special character "ΒΈ" which should not be valid HOT 7
- Enhance assertion check for function "equals" HOT 2
- readme.md toBoolean function documentation typo HOT 4
- No Active Maintainers? New Maintainers Needed? How to Proceed? HOT 10
- `isISO8601` doesn't support duration HOT 3
- isEmail accepts &@<domain> HOT 3
- Inconsistent isSlug results with "." in the inputs HOT 2
- "Cannot find module" error for lib or es/lib modules HOT 1
- isDate returns false for all strings HOT 8
- extended ascii passed isEmail validation HOT 1
- isEmail does not reject emails when blacklisted_chars includes quote
- get list of supported countries for passports HOT 1
- Invalid URL get validated HOT 2
- "Cannot find module './util/assertString'" since 13.12.0 HOT 1
- π§: Stale Prs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validator.js.