Fix to_link regex.