Fix priv function nodocs regex