Skip to main content

Home > git-documentdb > Validator > testWindowsInvalidFileNameCharacter

Validator.testWindowsInvalidFileNameCharacter() method#

Return false if the given name includes Windows invalid filename character

Signature:
testWindowsInvalidFileNameCharacter(name: string, options?: {
allowSlash?: boolean;
allowDriveLetter?: boolean;
allowDirectoryDot?: boolean;
allowDot?: boolean;
allowLastSpace?: boolean;
}): boolean;

Parameters#

ParameterTypeDescription
namestring
options{ allowSlash?: boolean; allowDriveLetter?: boolean; allowDirectoryDot?: boolean; allowDot?: boolean; allowLastSpace?: boolean; }
Returns:

boolean