updated regex to use htmlLinkRegex in config.js

This commit is contained in:
dylan 2025-12-25 17:23:48 +00:00
parent 14cbcede69
commit 9640a37f4a

View file

@ -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),
}, },