9 Commits

Author SHA1 Message Date
Ingo Karkat 8da238c84f 2017-05-26 17:38:15 +02:00
Ingo Karkat e97ca203a9 ingo#subst#pairs#Substitute() and ingo#subst#pairs#Split()
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.
2017-05-26 17:37:33 +02:00
Ingo Karkat 8a4566c20c 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 [wildcard, replacement] Lists instead of {wildcard}={replacement} Strings, too.
2017-05-26 17:34:44 +02:00
Ingo Karkat 74c93b09dc Change s:pairPattern so that the first, not the last = is used as the pair delimiter 2017-05-26 17:34:14 +02:00
Ingo Karkat 04707ac841 file creation 2017-05-26 17:28:20 +02:00
Ingo Karkat 8f53d612c8 file creation 2017-05-26 17:27:45 +02:00
Ingo Karkat 1d0d9a1887 2017-05-26 17:27:45 +02:00
Ingo Karkat c02aaaef70 2017-05-26 17:27:45 +02:00
Ingo Karkat 40e4ae9f8c file creation 2017-05-26 17:27:45 +02:00