CharacterValidator

CharacterValidator

new CharacterValidator()

Source:

Methods

isValid(string, index) → {boolean}

Checks if a string contains a valid or invalid character at a given index. This check is very strict and may be simplified in the future
Source:
Parameters:
Name Type Description
string String the string that contains the character to be validated
index Number the index of the character
Returns:
Type:
boolean
true if the character is a valid character, false if not