Closed gfdsa closed 11 years ago
hmmm, stupid me assuming things, sorry. rewrote it like this:
subs_filter <img(.+?)src=("|')http://www.domain.com/([^"']+)\.(jpeg|jpg|png|gif) <img$1src=$2http://cdn.domain.com/$3.$4 ir;
and works as expected. so apparently I there is some catch with look ahead/behind part ...
Hello,
Thanks for the great work on the module!
Running master on nginx/1.2.5 I've noticed this:
my rule:
my original text:
result from nginx with the rule applied:
this is the same with or without 'g' option and if I add the same subs_filter twice it does two substitutions per line. I am not good at C, less at parsing text in it. tried to trace it in the code but can't really figure out where the matches limit comes from.