From 68facd58a51a4c3c862538fdaa6ba51ad4576376 Mon Sep 17 00:00:00 2001 From: BluJ Date: Mon, 15 May 2023 10:43:10 -0600 Subject: [PATCH] chore: Add in the regexes patterns --- lib/util/regexPatterns.ts | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/util/regexPatterns.ts diff --git a/lib/util/regexPatterns.ts b/lib/util/regexPatterns.ts new file mode 100644 index 0000000..26e9eba --- /dev/null +++ b/lib/util/regexPatterns.ts @@ -0,0 +1,41 @@ +import { Pattern } from "../config/configTypes" +import * as regexes from "./regexes" +export const ipv6: Pattern = { + regex: regexes.ipv6.toString(), + description: "", +} + +export const ipv4: Pattern = { regex: regexes.ipv4.toString(), description: "" } + +export const url: Pattern = { regex: regexes.url.toString(), description: "" } + +export const local: Pattern = { + regex: regexes.local.toString(), + description: "", +} + +export const localHost: Pattern = { + regex: regexes.localHost.toString(), + description: "", +} +export const onion: Pattern = { + regex: regexes.onion.toString(), + description: "", +} + +export const onionHost: Pattern = { + regex: regexes.onionHost.toString(), + description: "", +} +export const ascii: Pattern = { + regex: regexes.ascii.toString(), + description: "", +} +export const email: Pattern = { + regex: regexes.email.toString(), + description: "", +} +export const base64: Pattern = { + regex: regexes.base64.toString(), + description: "", +}