mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Do not match extra '.' symbol in domain regex (#1216)
This commit is contained in:
parent
d6316dd209
commit
63ab44778b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue