MordhauBuddy


Validation

Namespace: MordhauBuddy.App
Parent Module: RenderUtils

Input validation

Functions and values

Function or valueDescription
validateDate(s)
Signature: s:string -> Result<(type),string list>

Validate date

validateDir(s)
Signature: s:string -> Result<string,string list>

Validate a directory

validateFileSize(s)
Signature: s:string -> Result<float<MeasureProduct<MB,MeasureOne>>,string list>

Validate file size

validateGeneric(s)
Signature: s:string -> Result<string,string list>

Validate any string by trimming, and ensure is not empty

validateImg(s)
Signature: s:string -> Result<string,string list>

Validate image

validateImport(s)
Signature: s:string -> Result<string,string list>

Validate profile import string