Remove unnecessary regexp test on the id

The last else statement in the id checking code doesn't need to test against the RegExp since it was already done in the previous conditional.