Skip to content

Commit

Permalink
lint(Pi Fansubs): remove capturing group
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuriel23 committed Mar 7, 2025
1 parent ed2b63b commit 6e9e3bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions websites/P/Pi Fansubs/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ presence.on('UpdateData', async () => {
'.mark-1 > div:nth-child(1) > img:nth-child(1)',
)
presenceData.details = 'No Pi Fansubs'
// eslint-disable-next-line regexp/no-unused-capturing-group
presenceData.name = textContent('.epih1')?.replace(/: (\d+)x(\d+)/, '')
presenceData.name = textContent('.epih1')?.replace(/: \d+x\d+/, '')
presenceData.largeImageText = match
? `Season ${match[1]}, Episode ${match[2]}`
: textContent('.epih1')
Expand Down

0 comments on commit 6e9e3bb

Please sign in to comment.