Skip to content

Commit

Permalink
resolved conflict & updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhii5496 committed Oct 9, 2024
1 parent 54aaf47 commit ba3ccc3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ const SERVICES: ServicesConfigType = {
html: '<iframe width="400" height="505" style="margin: 0 auto;" frameborder="0" scrolling="no" allowtransparency="true"></iframe>',
height: 505,
width: 400,
id: (groups) => {
if (groups.length > 0) {
const item = groups[0].split("/");
return item[0];
}
},
id: (groups: string[]) => groups?.[0]?.split("/")[0],
},
twitter: {
regex: /^https?:\/\/(www\.)?(?:twitter\.com|x\.com)\/.+\/status\/(\d+)/,
Expand Down

0 comments on commit ba3ccc3

Please sign in to comment.