updated regex to use htmlLinkRegex in config.js
This commit is contained in:
parent
14cbcede69
commit
9640a37f4a
1 changed files with 5 additions and 5 deletions
10
config.js
10
config.js
|
|
@ -6,30 +6,30 @@ import {
|
||||||
getReadingBooklogr,
|
getReadingBooklogr,
|
||||||
getRSSItemTitle,
|
getRSSItemTitle,
|
||||||
getTraktEpisode,
|
getTraktEpisode,
|
||||||
markdownLinkRegex,
|
htmlLinkRegex,
|
||||||
} from './utils.js'
|
} from './utils.js'
|
||||||
|
|
||||||
export const items = [
|
export const items = [
|
||||||
{
|
{
|
||||||
id: 'blog',
|
id: 'blog',
|
||||||
regex: markdownLinkRegex('dylan.weblog.lol'),
|
regex: htmlLinkRegex('dylan.weblog.lol'),
|
||||||
getLatest: async () =>
|
getLatest: async () =>
|
||||||
getJsonFeedItemTitle('https://dylan.weblog.lol/feed.json'),
|
getJsonFeedItemTitle('https://dylan.weblog.lol/feed.json'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'pics',
|
id: 'pics',
|
||||||
regex: markdownLinkRegex('https://dylan.some.pics/'),
|
regex: htmlLinkRegex('dylan.some.pics'),
|
||||||
getLatest: async () =>
|
getLatest: async () =>
|
||||||
getJsonFeedItemTitle('https://dylan.some.pics/feed.json'),
|
getJsonFeedItemTitle('https://dylan.some.pics/feed.json'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'letterboxd',
|
id: 'letterboxd',
|
||||||
regex: markdownLinkRegex('letterboxd.com/STFUDonny'),
|
regex: htmlLinkRegex('letterboxd.com/STFUDonny'),
|
||||||
getLatest: async () => getLetterboxdActivity('stfudonny', false),
|
getLatest: async () => getLetterboxdActivity('stfudonny', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'trakt',
|
id: 'trakt',
|
||||||
regex: markdownLinkRegex('trakt.tv/users/crankle'),
|
regex: htmlLinkRegex('trakt.tv/users/crankle'),
|
||||||
getLatest: async () =>
|
getLatest: async () =>
|
||||||
getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
|
getTraktEpisode('crankle', '78e1e87b446901f7e4f0883dd4995cec', false),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue