pashto-dictionary/website/src/lib/is-pashto.ts

9 lines
194 B
TypeScript
Raw Normal View History

2024-08-14 19:30:10 +00:00
/**
* Determines if a string is written in Pashto script;
*/
const pashtoLetters = /[\u0600-\u06FF]/;
export function isPashtoScript(s: string): boolean {
return pashtoLetters.test(s);
}