Skip to content

obsidian/validation

Validation utilities.

InterfaceDescription
ValidationMessageHolderHolds a validation message.
FunctionDescription
getOsAndObsidianUnsafePathCharsRegExpReturns a regexp matching all unsafe characters in file names/paths. Includes both OS-specific restrictions and Obsidian-specific ones.
getOsUnsafePathCharsRegExpReturns a regexp matching characters that are not safe to use in file names/paths at the OS level.
isValidationMessageHolderType guard to check if a value is a validation message holder.
VariableDescription
OBSIDIAN_UNSAFE_FILENAME_CHARSMatches characters that are not safe to use in file names within Obsidian.
UNIX_UNSAFE_PATH_CHARSUnix-specific unsafe file name path characters.
WINDOWS_UNSAFE_PATH_CHARSWindows-specific unsafe file name path characters.