getOsAndObsidianUnsafePathCharsRegExp
Returns a regexp matching all unsafe characters in file names/paths.
Includes both OS-specific restrictions and Obsidian-specific ones.
Import:
import { getOsAndObsidianUnsafePathCharsRegExp } from '@mnaoumov/obsidian-lib/validation';Signature:
function getOsAndObsidianUnsafePathCharsRegExp(isWindows: boolean | undefined): RegExpParameters:
| Parameter | Type | Description |
|---|---|---|
isWindows |
boolean | undefined | Whether to include Windows-specific restrictions. Defaults to Platform.isWin. |
Returns: RegExp — A regexp matching all unsafe characters in file names/paths.