Skip to content

Instantly share code, notes, and snippets.

@codeeshop-oc
Last active October 13, 2022 09:11
Show Gist options
  • Save codeeshop-oc/81c02db73bb8d7cf5c1817df79d4cf91 to your computer and use it in GitHub Desktop.
Save codeeshop-oc/81c02db73bb8d7cf5c1817df79d4cf91 to your computer and use it in GitHub Desktop.
RTL Text Test
const isRtlText = require('is-rtl-text')
const Texts = ['کھ', '#sssssss w مهسا_امینی', 'A @@#', 'تھ', 'العربية', '𐬨𐬀𐬰𐬛𐬂']
for (let i = Texts.length - 1; i >= 0; i--) {
console.log(isRtlText(Texts[i]), Texts[i], 'Texts[i]')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment