Comments (8)
I'm sure the unicodes are correct.
٠١٢٣٤٥٦٧٨٩
for Arabic ranging from u0660
to U0669
۰۱۲۳۴۵۶۷۸۹
for Persian (Extended Arabic-inidic) ranging from u06F0
to u06F9
from persian-tools.
It should be
converted = digitsArToFa(digitsFaToEn(nationalID));
from persian-tools.
converted = digitsArToFa(digitsFaToEn(nationalID));
Doesn't work.
from persian-tools.
Fixed and released v1.7.0. check it out and let me know if you have any other issues.
from persian-tools.
Thanks! It's better now; but still have problems.
For ٠١٢٣٤٥٦٧٨٩ ۰۱۲۳۴۵۶۷۸۹
I get:
ar to fa ۰۱۲۳۴۵۶۷۸۹ ۰۱۲۳۴۵۶۷۸۹ // correct
ar to en 0123456789 0123۴۵۶789 // X incorrect. Some Persian numbers are still treated as Arabic.
fa to en ٠١٢٣٤٥٦٧٨٩ 0123456789 // correct
from persian-tools.
There are incorrect digits Unicode, please copy AR digits Unicodes in our test folder.
from persian-tools.
from persian-tools.
fixed #109
from persian-tools.
Related Issues (20)
- Migrate from jest to vitest
- fastest-levenshtein error
- getBankNameFromCardNumber issue HOT 3
- phoneNumberValidator method can't accept phone numbers that start with '0900'' HOT 9
- timeago calculate wrong date HOT 6
- Does @persian-tools support float number? example: 5.3 پنج و سه دهم
- Validate Iranian national number bug HOT 1
- Compiled windows version? HOT 4
- Uncaught RangeError: Maximum call stack size exceeded HOT 6
- phoneNumber must be English digits, not support persian number HOT 1
- divide package to multi packages HOT 4
- not work phoneNumberValidator for 996 prefix HOT 2
- PersianTools: convertToTimeStamp - The input format must be yyyy/mm/dd hh:mm:ss HOT 1
- `phoneNumberDetail` method has incorrect typings HOT 2
- incompatible module with node HOT 1
- phoneNumberValidator does not support all mobile number formats HOT 2
- Wrong result of toPersianChars HOT 4
- getShebaInfo method does not work HOT 5
- maximum call stack size excceded error HOT 1
- NumberToWords HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from persian-tools.