Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup video & store ID info to docs #349

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

vincanger
Copy link
Collaborator

Description

Adds the open saas setup walkthrough video to the Getting Started section of docs

also fixes #321

Contributor Checklist

Make sure to do the following steps if they are applicable to your PR:

Copy link
Collaborator

@matijaSos matijaSos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few small issues to fix, otherwise lgtm!

function getYouTubeId(url: string): string | null {
const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
const match = url.match(regExp);
return match && match[2].length === 11 ? match[2] : null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it have to be 11? Maybe add a comment above explaining it.

return match && match[2].length === 11 ? match[2] : null;
}

const youtubeId = getYouTubeId(src);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const youtubeId = getYouTubeId(src);
const youTubeId = getYouTubeId(src);

You capitalized "Tube" in other places, so to keep it consistent you should do it here, too

@vincanger vincanger merged commit 13c79b9 into main Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add explicit mention of LEMONSQUEEZY_STORE_ID in docs
2 participants