Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `number_to_phone` formats number with regexp | Pan GaoYong | 2016-04-02 | 1 | -2/+11 |
| | | | | | | | | | | | | By default, this method formats US number. This commit extends its functionality to format number for other countries with a custom regular expression. number_to_phone(18812345678, pattern: /(\d{3})(\d{4})(\d{4})/) # => 188-1234-5678 The output phone number is divided into three groups, so the regexp should also match three groups of numbers. | ||||
* | Nodoc missing number helper classes in AS [ci skip] | Carlos Antonio da Silva | 2013-12-11 | 1 | -1/+1 |
| | | | | These classes are not meant to be public. | ||||
* | Change delimiter check order: first check if it is present | Carlos Antonio da Silva | 2013-12-03 | 1 | -3/+3 |
| | | | | | | | This reads a lot better, and we won't need to try start_with? for blank delimiters. Also rename method name to read better. | ||||
* | Make both conversion methods work similarly | Carlos Antonio da Silva | 2013-12-03 | 1 | -1/+2 |
| | | | | | The conversion without area code already changed the passed number in place, so change the other method to do the same. | ||||
* | Remove useless empty string | Carlos Antonio da Silva | 2013-12-03 | 1 | -2/+1 |
| | |||||
* | No need for #tap | Carlos Antonio da Silva | 2013-12-03 | 1 | -4/+3 |
| | |||||
* | Stop using local variables everywhere, make use of the reader | Carlos Antonio da Silva | 2013-12-03 | 1 | -1/+1 |
| | |||||
* | :sicssors: | Rafael Mendonça França | 2013-12-02 | 1 | -1/+0 |
| | |||||
* | Make load of NumberHelper thread safe | Rafael Mendonça França | 2013-12-02 | 1 | -0/+51 |