Closed
Description
The domain substitution python script currently replaces the domains in the whole content.
Would you consider limiting the replacement to non-comment lines?
I am not thinking of implementing mime-specific replacements (or parsing an AST) but simply to avoid lines that match ^(?!\s*//)(.*?)
.
The fix could either be to modify all regular expressions, or to inject this during the pattern compilation (and shift each replacement index by 2 e.g. <1> ->
<3>` and so on).
Another implementation idea could be to check lines one by one, but it would be less efficient.