Skip to content

Commit

Permalink
fix: update regex patterns for H-OU and H-SBS to improve matching acc…
Browse files Browse the repository at this point in the history
…uracy
  • Loading branch information
Viren070 committed Jan 18, 2025
1 parent 32068c2 commit 4b7daab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/parser/src/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const PARSE_REGEX = {
HEVC: /(?<![^ [(_\-.])(hevc|x265|h265|h\.265)(?=[ \)\]_.-]|$)/i,
AVC: /(?<![^ [(_\-.])(avc|x264|h264|h\.264)(?=[ \)\]_.-]|$)/i,
'H-OU':
/(?<![^ [(_\-.])(h(alf)?[ .\-_]?(ou|over[ .\-_]?under))(?=[ \)\]_.-]|$)/i,
/(?<![^ [(_\-.])(h?(alf)?[ .\-_]?(ou|over[ .\-_]?under))(?=[ \)\]_.-]|$)/i,
'H-SBS':
/(?<![^ [(_\-.])(h(alf)?[ .\-_]?(sbs|side[ .\-_]?by[ .\-_]?side))(?=[ \)\]_.-]|$)/i,
/(?<![^ [(_\-.])(h?(alf)?[ .\-_]?(sbs|side[ .\-_]?by[ .\-_]?side))(?=[ \)\]_.-]|$)/i,
},
languages: {
Multi: /(?<![^ [(_\-.])(multi|multi[ .\-_]?audio)(?=[ \)\]_.-]|$)/i,
Expand Down

0 comments on commit 4b7daab

Please sign in to comment.