Skip to content

Commit

Permalink
fixed: regex with non-capture
Browse files Browse the repository at this point in the history
  • Loading branch information
hortopan committed May 17, 2024
1 parent 673adf8 commit a2e1db2
Show file tree
Hide file tree
Showing 2 changed files with 772 additions and 914 deletions.
8 changes: 4 additions & 4 deletions src/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default {
return null;
}

if (value === 'LL'
|| value.startsWith('RDMM')
|| value.startsWith('FL')) {
if (value === 'LL' ||
value.startsWith('RDMM') ||
value.startsWith('FL')) {
return null;
}

Expand Down Expand Up @@ -136,7 +136,7 @@ export default {
width: 400,
},
twitter: {
regex: /^https?:\/\/(www\.)?(twitter|x)\.com\/.+\/status\/(\d+)/,
regex: /^https?:\/\/(www\.)?(?:twitter\.com|x\.com)\/.+\/status\/(\d+)/,
embedUrl: 'https://platform.twitter.com/embed/Tweet.html?id=<%= remote_id %>',
html: '<iframe width="600" height="600" style="margin: 0 auto;" frameborder="0" scrolling="no" allowtransparency="true"></iframe>',
height: 300,
Expand Down
Loading

0 comments on commit a2e1db2

Please sign in to comment.