Skip to content

Commit

Permalink
fix(subtitle): match entire string with regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Mar 16, 2024
1 parent 9e2c402 commit ea0a611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ fun <T : Collection<String>> T.filterWithRegex(subtitleLanguageRegex: String): S
val regexGroup = subtitleLanguageRegex.split(',')
return filter { language ->
regexGroup.any {
language.contains(Regex(it))
Regex(it).matchEntire(language) != null
}
}.toSet()
}
Expand Down

0 comments on commit ea0a611

Please sign in to comment.