In order to use Chrome in Ubuntu and have it respect some hosts in $no_proxy, I need to set those comma-separated values with
gsettings set org.gnome.system.proxy ignore-hosts <no-proxy>
where <no-proxy>
is formatted like ['localhost', '127.0.0.0/8', '::1']
What is the easiest way to convert the following no_proxy-string to that format?
localhost,127.0.0.1,example.org,.example.org,company.com,.company.com