Compare period character as well during wildcard matching

Currently, during wildcard matching, specifying *.xyz.com will end up
matching any domain ending in xyz.com (e.g. including abcxyz.com, which
is completely different). Ensure that it only matches the following:
1. xyz.com exactly
2. Domains ending in .xyz.com i.e. check the period character as well

Bug: 483142784
Flag: EXEMPT BUGFIX
Test: atest DomainVerificationPackageTest#testWildcardDomain

(cherry picked from commit 919d0cb125b31e1512417a69251f1cbee54ab12e)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:7f86f0843a74dfebb237d4a5b63384622edbb9d6
Merged-In: Ib6c7d9b560c75dd8ce1be3e2e40c68f8f3238f14
Change-Id: Ib6c7d9b560c75dd8ce1be3e2e40c68f8f3238f14
2 files changed