This replaces the simple >3 check with the correct min and max lengths and Regex that are in the Tildes source code.
Given that the debug variable will always be set to true in the getSettings() function, this check doesn't need to happen.