mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: correctly extract language flags
This commit is contained in:
@@ -451,7 +451,7 @@ export class BaseWrapper {
|
||||
}
|
||||
|
||||
protected extractCountryFlags(string: string): string[] {
|
||||
const countryFlagPattern = /[\p{Regional_Indicator}]/u;
|
||||
const countryFlagPattern = /[\u{1F1E6}-\u{1F1FF}]{2}/gu;
|
||||
const matches = string.match(countryFlagPattern);
|
||||
return matches ? [...new Set(matches)] : [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user