Last active
October 13, 2022 09:11
-
-
Save codeeshop-oc/81c02db73bb8d7cf5c1817df79d4cf91 to your computer and use it in GitHub Desktop.
RTL Text Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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