Only need to check for '.' once when not allow_dot