-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
Updated config.js to use Regex expressions when looking at url provided by user for background
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/jaredkent/start-wave/1w8c2o9qq |
src/utils/config.js
Outdated
// TODO: replace conditions with regex | ||
config.wallpaper.startsWith('http') || | ||
config.wallpaper.startsWith('https') | ||
config.wallpaper.match(/(http:\/\/)|(https:\/\/)/) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switched!
@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
Updated config.js to use regex expressions when looking at url provided by user for background