Skip to content

Commit

Permalink
fix allowed FQDN pattern, closes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Sep 28, 2020
1 parent 512bf3e commit 3cbbbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperglass/ui/components/QueryTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import { useEffect } from "react";
import { Input, useColorMode } from "@chakra-ui/core";

const fqdnPattern = /^(?!:\/\/)([a-zA-Z0-9]+\.)?[a-zA-Z0-9][a-zA-Z0-9-]+\.[a-zA-Z]{2,6}?$/gim;
const fqdnPattern = /^(?!:\/\/)([a-zA-Z0-9-]+\.)?[a-zA-Z0-9-][a-zA-Z0-9-]+\.[a-zA-Z-]{2,6}?$/gim;

const bg = { dark: "whiteAlpha.100", light: "white" };
const color = { dark: "whiteAlpha.800", light: "gray.400" };
Expand Down

0 comments on commit 3cbbbed

Please sign in to comment.