Do not match extra '.' symbol in domain regex (#1216)

This commit is contained in:
Kevin Ramsunder 2016-12-14 19:21:22 -05:00 committed by Philippe Potvin
parent d6316dd209
commit 63ab44778b

View file

@ -1,6 +1,6 @@
import * as regex from './url-regex';
export const domainRegex = /([0-9]+[:.]*)+|([a-zA-Z0-9.]+[.][a-zA-Z0-9.]+([:][0-9]+)*){1}/;
export const domainRegex = /([0-9]+[:.]*)+|([a-zA-Z0-9.]+[.][a-zA-Z0-9]+([:][0-9]+)*){1}/;
export default function isUrlCommand(shell, data) {
const matcher = regex[shell]; // eslint-disable-line import/namespace