Automatic phone number formatting for Australia numbers

Hi team,
Filing on behalf of a customer:

At the moment, Automatic phone number formatting has been delivered as per this feature request here: https://community.hubspot.com/t5/HubSpot-Ideas/Automatic-Phone-Number-Formatting/idi-p/34567 which while is a great feature, is something that follows a standard formatting for all numbers of a particular country code.
This feature request would be specific to Australia, where the phone number formatting rules for Australia are correct for mobile phone numbers, but incorrect for landline numbers (numbers with area code 2,3,7 and 8).
The correct formatting can be seen in the following: https://www.stylemanual.gov.au/grammar-punctuation-and-conventions/numbers-and-measurements/telephone-numbers

and
https://en.wikipedia.org/wiki/Telephone_numbers_in_Australia
Just to clarify as well, current behavior for incorrect formatting:
+61 299 999 999
+61 399 999 999
+61 400 000 000 (mobile)
+61 500 000 000 (mobile – future use)
+61 799 999 999
+61 899 999 999
Expected behavior for correct formatting:
+61 2 9999 9999
+61 3 9999 9999
+61 400 000 000 (mobile)
+61 500 000 000 (mobile – future use)
+61 7 9999 9999
+61 8 9999 9999

At the moment, the workaround to have the numbers display as the correct formatting above would be to not Apply automatic number formatting, however this defeats the purpose of having automatic number formatting.
That said, we hope to improve the automatic number formatting feature based on the above use case :slightly_smiling_face: Thanks in advance!

The support team has let me know the dev team “cannot provide this at the moment”.

Here is some psudo-code to achieve it on the client side.

This assumes some string splitting into countryCode and areaCode, which I assume already exists or is easy to do.

switch (countryCode) {

 case '61':

 if (areaCode == '4' || '5') {

 // function to space as +61 400 000 000 (existing)

 }

 else

 {

 // function to space as +61 2 9999 9999 (new)

 }

 break:

 default:

 // do what you need for other countries if required

 break;

}

Bumping this after a couple of years. It would be great to see Australian numbers represented properly when using automatic number formatting.