iOS .com key recognizes if there is already a period after the domain name

If you press the .com key after typing a domain name with or without a trailing period, the outcome remains the same. So “example.” becomes example.com and not example..com.