Adding Nextcloud trusted domains

I have added few trusted domains to Nextcloud. They work well,but in the installation script I see lines

ynh_app_setting_set "$app" skipped_regex \
            "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*"

Why the default domain is added to skipped_regex with well-known url ? Will I need to add the trusted domains to the skipped_regex too?