UNPKG

quickpickle

Version:

Plugin for Vitest to run tests written in Gherkin Syntax.

35 lines (34 loc) 935 B
export interface SanitizeOptions { decode?: ({ regex: RegExp; replacement: string; })[]; /** * RegEx that filters out stuff like \..\ or /../ */ parentDirectoryRegEx?: RegExp; /** * Characters to be removed from paths because the file system doesn't support these. */ notAllowedRegEx?: RegExp; } interface SanitizeOptionsComplete { decode: ({ regex: RegExp; replacement: string; })[]; /** * RegEx that filters out stuff like \..\ or /../ */ parentDirectoryRegEx: RegExp; /** * Characters to be removed from paths because the file system doesn't support these. */ notAllowedRegEx: RegExp; } export declare const DEFAULT_OPTIONS: SanitizeOptionsComplete; /** * Sanitizes a portion of a path to avoid Path Traversal */ export default function sanitize(pathstr: string, options?: SanitizeOptions): string; export {};