Other websites in the Official Discourse Affiliate plugin

Yatta!

I did it. But It was painful :sweat_smile:

I think I had a good regex (at least test regex websites seemed to think so) but when I used something like this in the ASIN regex (\/[A-Za-z0-9_\/-]*) it always captured /www and not the url after ldlc.com/.

To succeed, I had to use {5,} in my ASIN regex. This way, it had to ignore the /www. It’s ugly, the experts here will cry while facing this awful coding. But hey… it works :laughing:

There must be a better way to do it tho, if someone has an idea, I can still try it..

Anyway I can move on to the next website I want to add. It will be a lot easier than this one.