Skip to content

Commit

Permalink
Allow localhost:xxxx domains when adding websites
Browse files Browse the repository at this point in the history
Adding `localhost:<port>` domains to websites fail to validate, but
it would help for local development
  • Loading branch information
rendall committed Sep 18, 2020
1 parent 1cfb9e1 commit 064b91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const FILTER_DOMAIN_ONLY = 0;
export const FILTER_COMBINED = 1;
export const FILTER_RAW = 2;

export const DOMAIN_REGEX = /((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}/;
export const DOMAIN_REGEX = /localhost:\d{1,5}|((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}/;

export const DESKTOP_SCREEN_WIDTH = 1920;
export const LAPTOP_SCREEN_WIDTH = 1024;
Expand Down

0 comments on commit 064b91e

Please sign in to comment.