Can you add a comment explaining why type.indexOf('.', 16) == -1 ?