From 63ab44778bf6170ddabcdb8a520258cbb295a4d4 Mon Sep 17 00:00:00 2001 From: Kevin Ramsunder Date: Wed, 14 Dec 2016 19:21:22 -0500 Subject: [PATCH] Do not match extra '.' symbol in domain regex (#1216) --- lib/utils/url-command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/url-command.js b/lib/utils/url-command.js index a59f7206..20114399 100644 --- a/lib/utils/url-command.js +++ b/lib/utils/url-command.js @@ -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