Option to turn extension on or off certain websites does not work with subdomains

bug

#1

Description of the issue:

**Steps to Reproduce (add as many as necessary): 1.visit extension details page 2.select the drop down menu under permissions and click on specific sites 3. enter https://chrome.google.com/webstore **

Actual Result (gifs and screenshots are welcome!):
invalid url

Expected result:

Reproduces how often:

Brave Version(about:brave):

Version 0.58.21 Chromium: 71.0.3578.98

Reproducible on current live release (yes/no):

Additional Information: