-
Notifications
You must be signed in to change notification settings - Fork 105
Fix formatting issue so you don't need to gsub #9
base: master
Are you sure you want to change the base?
Conversation
+1 this :) |
👍 |
1 similar comment
👍 |
Thanks! |
Awesome, thanks. |
Conflicts: test/number_test.rb
Really need this to be merged 👍 ! |
Hi @locochris, thanks for the PR! 😄 Can you tell me what bug not discarding the whitespace is causing? |
@eileencodes there's an example in the test included in the PR or did you mean something else? |
@eileencodes as @toxaq mentioned - its a formatting issue and there's a failing test case in the PR. |
The test really isn't an example of how having whitespace would break since it existed prior to this PR. Can you update the commit message to explain that it fixes a formatting issue so you don't need to gsub? I read it as whitespace was causing broken behavior. |
eg. current behaviour ``` GlobalPhone.parse("1520123456", "IE").national_format ``` gsub workaround: ``` GlobalPhone.parse("1520123456", "IE").national_format.gsub(/\s+/, ' ') ```
224ceb9
to
13909e0
Compare
no worries - how's it look now @eileencodes ? |
is sstephenson the most active fork? I'd use this gem if I can rely on getting clean output. |
eg. current behaviour
gsub workaround: