floere/phony — Issue #30: Make number formatting more forgiving so that a number is displayed
Author: floere
Created: 2011-10-21 19:30:04+00:00
State: open

If phony incorrectly detects a wrong prefix, then e.g. formats it using `split(3,3)`, instead of e.g. `split(4,4)` it will format it incorrectly.

However, much worse, it will lose 2 digits. This will usually only be detected at (phone) call time, with very bad results.

I suggest making the split method more forgiving. Hackish way: Adding X to the last number passed in, where X is an arbitrary number, e.g. 5.