doc: Fix version switcher JS with two-digit versions.

The version parser incorrectly splits by character, which means stuff
like v0.10 will be treated as v0.1, and thus the selector will never
have a selection (because there is no v0.1). Additionally, the regex
doesn't handle multi-digit versions, and would popup an error about the
wrong domain.