Skip to content

Commit

Permalink
Add full URL for social media links. (#90)
Browse files Browse the repository at this point in the history
* Add full URL for social media links.

* Update helix-query.yaml
  • Loading branch information
bstopp authored Jan 22, 2024
1 parent 761b221 commit 1637043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ indices:
value: textContent(el)
twitter:
select: div.author-detail ul > li > a
value: match(attribute(el, 'href'), '^https?:\/\/(?:www\.)?twitter\.com\/(?:#!\/)?@?([^/?#]*)\/?(?:[?#].*)?$')
value: match(attribute(el, 'href'), '^(https?:\/\/(?:www\.)?twitter\.com\/.*)$')
facebook:
select: div.author-detail ul > li > a
value: match(attribute(el, 'href'), '^https?:\/\/(?:www\.)?facebook\.com\/(?:#!\/)?@?([^/?#]*)\/?(?:[?#].*)?$')
value: match(attribute(el, 'href'), '^(https?:\/\/(?:www\.)?facebook\.com\/.*)$')
instagram:
select: div.author-detail ul > li > a
value: match(attribute(el, 'href'), '^https?:\/\/(?:www\.)?instagram\.com\/(?:#!\/)?@?([^/?#]*)\/?(?:[?#].*)?$')
value: match(attribute(el, 'href'), '^(https?:\/\/(?:www\.)?instagram\.com\/.*)$')
youtube:
select: div.author-detail ul > li > a
value: match(attribute(el, 'href'), '^https?:\/\/(?:www\.)?youtube\.com\/user\/(?:#!\/)?@?([^/?#]*)\/?(?:[?#].*)?$')
value: match(attribute(el, 'href'), '^(https?:\/\/(?:www\.)?youtube\.com\/.*)$')

0 comments on commit 1637043

Please sign in to comment.