mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Add in the regexes patterns
This commit is contained in:
41
lib/util/regexPatterns.ts
Normal file
41
lib/util/regexPatterns.ts
Normal file
@@ -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: "",
|
||||
}
|
||||
Reference in New Issue
Block a user