Closed jvoisin closed 3 years ago
There is no point in checking if the domain ends with a string, then checking again if it ends with a string prefixed by a dot.
This is not useless, it avoids making an extra allocation when the first check returns false (and this is 99% of all cases).
Maybe we should add a comment about why it's being done, though.
There is no point in checking if the domain ends with a string, then checking again if it ends with a string prefixed by a dot.