Existing unicodeToNumbers() function didnot work for number with leading 0. Example: 0123 gave 83 because it used eval to convert string to integer. Fixed that.
Added test cases so that we can refactor or add new features without breaking existing code.
Existing
unicodeToNumbers()
function didnot work for number with leading 0. Example: 0123 gave 83 because it used eval to convert string to integer. Fixed that.Added test cases so that we can refactor or add new features without breaking existing code.