obsidian/validation
Validation utilities.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| ValidationMessageHolder | Holds a validation message. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| getOsAndObsidianUnsafePathCharsRegExp | Returns a regexp matching all unsafe characters in file names/paths. Includes both OS-specific restrictions and Obsidian-specific ones. |
| getOsUnsafePathCharsRegExp | Returns a regexp matching characters that are not safe to use in file names/paths at the OS level. |
| isValidationMessageHolder | Type guard to check if a value is a validation message holder. |
Variables
Section titled “Variables”| Variable | Description |
|---|---|
| OBSIDIAN_UNSAFE_FILENAME_CHARS | Matches characters that are not safe to use in file names within Obsidian. |
| UNIX_UNSAFE_PATH_CHARS | Unix-specific unsafe file name path characters. |
| WINDOWS_UNSAFE_PATH_CHARS | Windows-specific unsafe file name path characters. |