Skip to content

UNIX_UNSAFE_PATH_CHARS

The characters Obsidian refuses in a file name on macOS, Linux and iOS, plus the NUL no file system stores.

This is Obsidian’s refusal set, not the file system’s: macOS and Linux store \ and :, but Obsidian refuses both, so a name holding either cannot be created through the vault there. Read from Obsidian 1.15.0’s app.js.

Import:

import { UNIX_UNSAFE_PATH_CHARS } from '@mnaoumov/obsidian-lib/validation';

Signature:

const UNIX_UNSAFE_PATH_CHARS: RegExp

Type: RegExp


Links to this page: