at this point the conditional is definitely too long, and should be refactored as an `if (case1 || case2 || case3 || ...)` with `var case1 = ...` for each logical thing that might be true for this to be an invalid tag name.