Comments (14)
my gut tells me that this would be a sufficient check:
const isRelativeUrl = !(url.substr(0,7) === 'http://' || url.substr(0,8) === 'https://');
The upsides to this would be:
- we don't try to get too clever with regex
- we don't try to anticipate all of the TLDs
Test suite would need adjustment too.
https://github.com/open-sauced/open-sauced/blob/4a26b94eaa1a1094ee0dd0d7ca76ead50da2acc4/src/tests/util.test.js
from open-sauced.
I want to work on this issue, please assign me
from open-sauced.
I made a PR
Please check it out
from open-sauced.
I haven't reproduced yet, but here is the code path I suspect is responsible:
Repo Form checking validity:
Validity Checker catching .com
and assuming this is an absolute URL:
Line 5 in 4a26b94
From there, I haven't validated, but I believe the intention would be for us to consider this a "relative URL".
from open-sauced.
I haven't reproduced yet, but here is the code path I suspect is responsible:
Repo Form checking validity:
Validity Checker catching
.com
and assuming this is an absolute URL:Line 5 in 4a26b94
From there, I haven't validated, but I believe the intention would be for us to consider this a "relative URL".
Needs a fix for sure :D
from open-sauced.
Marking this as a good first issue - I think there's enough context to work with.
from open-sauced.
the RFC itself is terrible, the function could use more regex to properly check for owner/repo
and not complicate so much with URL handling - there are node classes now handling that including https://developer.mozilla.org/en-US/docs/Web/API/URL
from open-sauced.
For what it's worth, this repo is flagged as invalid, for similar reasons:
https://github.com/httpie/httpie
from open-sauced.
Please review the CONTIBUTING.md for info on how to assign yourself to the issue.
from open-sauced.
.take
from open-sauced.
Thanks for taking this on! If you have not already, join the conversation in our Discord
from open-sauced.
@mtfoley my test cases are not getting cleared. I am not getting what changes I need to do in https://github.com/open-sauced/open-sauced/blob/4a26b94eaa1a1094ee0dd0d7ca76ead50da2acc4/src/tests/util.test.js
although brob/plug11ty.com is valid to add but test cases are getting failed.
so can you please me through this process?
I am a newbie in this open-source contributions
from open-sauced.
@mtfoley my test cases are not getting cleared. I am not getting what changes I need to do in https://github.com/open-sauced/open-sauced/blob/4a26b94eaa1a1094ee0dd0d7ca76ead50da2acc4/src/tests/util.test.js
although brob/plug11ty.com is valid to add but test cases are getting failed.
so can you please me through this process?
I am a newbie in this open-source contributions
Hey, I don't see you having forked the open-sauced repo, once you do, you can apply the fixes discussed above. There is nothing you need to do to the unit test, it's the code that this issue requires fixing.
If that is not the case IE you are not looking to contribute, let us know and we will assign to someone else :D
from open-sauced.
🎉 This issue has been resolved in version 0.52.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from open-sauced.
Related Issues (20)
- Implement Post Hog into onboarding buttons HOT 2
- Bug: When pressing the opensauced logo to go to the homepage I get sent to an old version HOT 9
- Bug: Posthog not sending analytics data HOT 3
- Docs: Add Step 3 of Onboarding to Open Sauced HOT 1
- Bug: production site is down HOT 3
- Bug: Fork button doesn't know I already have a fork HOT 5
- Bug: Same repository shows up twice in Repo Recommendation HOT 1
- Bug: Tracking the same repository twice HOT 1
- Bug: Forking doesn't work HOT 4
- Bug: added the same repo twice to my app.opensauced.pizza dashboard HOT 3
- Bug: github-actions bot has outdated link for Contributing Guide HOT 4
- Feature: add artifact maintenance and timeouts HOT 1
- Bug: An error occurs when attempting to load admin status
- Bug: from DW
- Feature: Remove the unmaintained Squoosh-CLI from the project HOT 2
- Feature: OpenSauced the final form HOT 2
- Bug: Not compatible with node v18
- Feature: Planned Archival of this repo HOT 1
- Bug: Cannot login to Github With Firefox or Brave HOT 1
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 open-sauced.