Menu: Fix var declaration and move regex comment to the right place.

Follow-up to a6806ab1