test
This commit is contained in:
parent
fa001ec812
commit
ecbd65817c
@ -4,10 +4,7 @@ let pinboardCursor = 0;
|
|||||||
|
|
||||||
const parsePinboardImageUrls = () => {
|
const parsePinboardImageUrls = () => {
|
||||||
const raw = process.env.PINBOARD_IMAGE_URLS || '';
|
const raw = process.env.PINBOARD_IMAGE_URLS || '';
|
||||||
return raw
|
return raw.split(',')
|
||||||
.split(',')
|
|
||||||
.map(url => url.trim())
|
|
||||||
.filter(url => /^https?:\/\//i.test(url));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const selectPinboardWindow = (urls, maxCount) => {
|
const selectPinboardWindow = (urls, maxCount) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user