Had this problem when trying to use a regex for http.cors.allow-origin. It would turn something like /https?:\/\/localhost(:[0-9]+)?/ into /https?:\\/\\/localhost(:[0-9]+)?/ in the config (not the doubled backslashes), so it was impossible to do this.
Had this problem when trying to use a regex for http.cors.allow-origin. It would turn something like
/https?:\/\/localhost(:[0-9]+)?/
into/https?:\\/\\/localhost(:[0-9]+)?/
in the config (not the doubled backslashes), so it was impossible to do this.This is a hacky way to fix this problem, but the only one I know of right now. See this issue for discussion: https://github.com/saltstack/salt/issues/6435