function isPangram(sentence) {
const polishSpecial = /[śćóźąęłżń]/;
const RegEx = /(\w).*\1/;
return !RegEx.test(sentence);
}
Mine regular expression only checks whether the letter is repeating itself. I want also add these polish special characters to the main RegEx.
The point is that sentence can only have one letter from [a-z] and [śćóźąęłżń], then it's true. If sentence doesn't have even one letter from [a-z] or [śćóźąęłżń], then it's false.