getOsUnsafePathCharsRegExp
Returns a regexp matching characters that are not safe to use in file names/paths at the OS level.
Import:
import { getOsUnsafePathCharsRegExp } from 'obsidian-dev-utils/obsidian/validation';Signature:
function getOsUnsafePathCharsRegExp(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 characters that are not safe to use in file names/paths at the OS level.