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

Update config.js #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

anarchylimes
Copy link

@anarchylimes anarchylimes commented Sep 5, 2020

Updated config.js to use regex expressions when looking at url provided by user for background

Updated config.js to use Regex expressions when looking at url provided by user for background
@vercel
Copy link

vercel bot commented Sep 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/jaredkent/start-wave/1w8c2o9qq
✅ Preview: https://start-wave-git-f6f3a65d4e0e1cfc1c32ba2a77d73c5354db6907.jaredkent.vercel.app

// TODO: replace conditions with regex
config.wallpaper.startsWith('http') ||
config.wallpaper.startsWith('https')
config.wallpaper.match(/(http:\/\/)|(https:\/\/)/)
Copy link
Owner

@Jaredk3nt Jaredk3nt Sep 29, 2020

Choose a reason for hiding this comment

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

Can we switch to test over match on both of these? It's a bit more straight forward although they technically give the same outcome here.

Copy link
Author

Choose a reason for hiding this comment

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

switched!

@Jaredk3nt
Copy link
Owner

Jaredk3nt commented Sep 29, 2020

@anarchylimes Thanks for the PR! Sorry I missed it open, hadn't checked my github notifications in awhile. I added two small comments and then I will totally get it merged

switch to regex.test rather than str.match
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.

None yet

2 participants