fix: correctly extract language flags

This commit is contained in:
Viren070
2025-01-27 14:20:47 +00:00
parent f62bae8846
commit 24296b0f4e
+1 -1
View File
@@ -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)] : [];
}