Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digits separator is pronounced when the tens digit is missing #2

Open
waelhasan opened this issue Sep 26, 2018 · 0 comments
Open

Digits separator is pronounced when the tens digit is missing #2

waelhasan opened this issue Sep 26, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@waelhasan
Copy link
Owner

When the given number has zero value in the tens digit, the separator (which separates the digit in the same unit) is concatenated to the correct pronunciation of the number

Note that his bug only works in Arabic

Examples

console.log(convert(870)) // ثمان مئة و  وسبعون
console.log(convert(70)) // و سبعون

console.log(convert(870, { separator: 'ثم' })) // logs: "ثمان مئة ثم  ثمسبعون"
console.log(convert(70, { separator: 'ثم' })) // logs: " ثم سبعون"
@waelhasan waelhasan added the bug Something isn't working label Sep 26, 2018
@waelhasan waelhasan self-assigned this Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant