cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Order tracking fails if email domain contains a hyphen

Stuart0870
Established Contributor
Established Contributor

The webpage used for tracking orders https://ee.co.uk/help/orders/track-mobile-order automatically fails for email addresses with domains the validly contain a hyphen e.g. test@this-domain.com fails validation due an incorrect REGEX expression test in: 

<input name="emailOrPhoneNumber" id="email_or_phonenumber" type="text" class="eeid-input form-control__field" maxlength="512" autocomplete="off" required="true" pattern="^(^([a-zA-Z0-9_+&amp;*-]+(\.[a-zA-Z0-9_+&amp;*-]+)*@[a-zA-Z0-9_]+(\.[a-zA-Z0-9]{1,})*)$)|(^((\+|0{2})?44|0)7(\d){9}$)$">

This site gets worse year on year, I'm not even going to mention the iPhone pre-ordering program!

2 REPLIES 2
XRaySpeX
EE Community Star
EE Community Star

So it does! Yet it has a valid domain.

If you think I helped please feel free to hit the "Thumbs Up" button below.

To phone EE CS: Dial Freephone +44 800 079 8586 - Option 1 for Mobile Phone & Mobile Broadband or Option 2 for Home Broadband & Home Phone

ISPs: 1999: Freeserve 48K Dial-Up > 2005: Wanadoo 1 Meg BB > 2007: Orange 2 Meg BB > 2008: Orange 8 Meg LLU > 2010: Orange 16 Meg LLU > 2011: Orange 20 Meg WBC > 2014: EE 20 Meg WBC > 2020: EE 40 Meg FTTC > 2022:EE 80 Meg FTTC SoGEA > 2025 EE 150 Meg FTTP
Ali_A
EE Community Support Team

Hi @Stuart0870 

Thanks for bringing this to our attention. I've passed this anomaly on to be looked into. 

Ali