Skip to content

Commit

Permalink
modify fqdn regex
Browse files Browse the repository at this point in the history
  • Loading branch information
chantal-kelm committed Aug 1, 2023
1 parent 8746a3a commit a56f919
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// Minimum 3 labels
export const validateServerAddress = (value: any) => {
const isFQDN =
/^(?!-)(?!.*--)(?!.*\d$)[a-zA-Z0-9áéíóúüñ]{1,63}(?:-[a-zA-Z0-9áéíóúüñ]{1,63})*(?:\.[a-zA-Z0-9áéíóúüñ]{1,63}(?:-[a-zA-Z0-9áéíóúüñ]{1,63})*){2,}$/;

/^(?!-)(?!.*--)(?!.*\d$)[a-zA-Z0-9áéíóúüñ]{1,63}(?:-[a-zA-Z0-9áéíóúüñ]{1,63})*(?:\.[a-zA-Z0-9áéíóúüñ]{1,63}(?:-[a-zA-Z0-9áéíóúüñ]{1,63})*){1,}$/;
const isIP =
/^(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3}|(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4})$/;
const numbersAndPoints = /^[0-9.]+$/;
Expand Down

0 comments on commit a56f919

Please sign in to comment.