Thank you for putting together this helpful Nova tool.
My project allows users to save phone numbers in the full 10 digit format of Canada and USA along with the 5 and 6 digit numbers for helplines and custom services. I was able to support both by using the helpful custom format tool.
->withCustomFormats('#####', '######')
I have run into a problem where saving the 5 and 6 digit numbers always inserts a + character at the beginning of the number. When the resource is edited in the future, this character is detected as a full 10 digit number and the format breaks. I would like to prevent the + character from being added to the custom formats.
Possible solutions
option flag to choose whether the + character should be inserted automatically
Thank you for putting together this helpful Nova tool.
My project allows users to save phone numbers in the full 10 digit format of Canada and USA along with the 5 and 6 digit numbers for helplines and custom services. I was able to support both by using the helpful custom format tool.
I have run into a problem where saving the 5 and 6 digit numbers always inserts a + character at the beginning of the number. When the resource is edited in the future, this character is detected as a full 10 digit number and the format breaks. I would like to prevent the + character from being added to the custom formats.
Possible solutions