Only canonicalize path separators in {replacement} on demand, via additional a:isCanonicalizeReplacement argument.
Some clients may not need iterative replacement, and treat the wildcard as a convenient regexp-shorthand, not overly filesystem-related.
ingo#subst#pairs#Substitute(): Canonicalize path separators in {replacement}, too. This is important to match further pairs, too, as the pattern is always in canonical form, so the replacement has to be, too.
ENH: Allow passing to ingo#subst#pairs#Substitute() [wildcard, replacement] Lists instead of {wildcard}={replacement} Strings, too.
This is important to match further pairs, too, as the pattern is always in canonical form, so the replacement has to be, too.
ENH: Allow passing to [wildcard, replacement] Lists instead of {wildcard}={replacement} Strings, too.