SolutionForm Link Validators Discussion
See original GitHub issueThis issue is to specifically discuss further implementation of: https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/src/components/formHelpers/FormValidators.js
The current validators check for:
- Repl editor links (e.g.
https://repl.it/@Sky020/some-project
) - Glitch editor links (e.g.
https://glitch.com/edit/#!/some-project
) - Codesandbox editor links (e.g.
https://codesandbox.io/s/sky020/some-project
) - General GitHub links (e.g.
https://github.com/freeCodeCamp/freeCodeCamp/
) - Localhost links (e.g.
http://localhost:3000
) -
Repl.it
‘join’ links (resolved with #41094 ) (e.g.https://repl.it/join/Sky020
) -
fCC
related links (codepen.io/freecodecamp
,freecodecamp.rocks
,github.com/freecodecamp
) (resolved with #41094 ) - unsecure
http
links which cannot be used by the tests (resolved with #41329 )
And does not check for:
- IPv4 and IPv6 addresses (e.g.
192.168.1.1:3000
or, more common,http://127.0.0.1:5500
)
Any other thoughts? Should some/all of this be implemented?
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
SOLUTION: Form Validation
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science! Post question. Similar Documents....
Read more >Secure JavaScript URL validation
We can use these to validate URLs in several ways: Using Regex literals and constructors; URL constructors; isValidURL method; Input elements ...
Read more >How do I validate links in a course? - Canvas Community
As an instructor, you can verify links to course content throughout your course to ensure they are valid. You can check these links...
Read more >Django's ModelForm unique_together validation
My problem is that the SolutionForm does not validate Solution 's unique_together constraint and thus, it returns an IntegrityError when ...
Read more >Solved: URL Validation
Solved: Hi All, I have created a single line variable field for catalog item. Now i want to validate the url. Kindly help...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems pretty related https://github.com/freeCodeCamp/freeCodeCamp/pull/41162#issuecomment-784330415. Want to add it to the list @ShaunSHamilton? Or let me know if it feels like a separate issue and I’ll make another one.
I suppose the test would be to require
https
submissions.Wouldn’t hurt - I think I’ve only seen someone submit that once (based on forum posts), but extra sanity checks are always nice to have IMHO.
But it’s also not a blocking issue, so I wouldn’t prioritise it.