40fingers / StyleHelper-Sko

Manipulate DNNCMS HTML, JS and CSS in #dnncms
https://www.40fingers.net/Products/DNN-Stylehelper
7 stars 2 forks source link

Add IfUrl Regex option #31

Open Timo-Breumelhof opened 1 year ago

Timo-Breumelhof commented 1 year ago

Currently one cannot filter for a url ending with a specific string, like IfUrl='/test/work' This will also be matched on this url: '/test/work/mywork'

In theory IfUrl='/test/work$' could work but it doesn't because the regex string gets encoded:

https://github.com/40fingers/StyleHelper-Sko/blob/d18b4d235a5e84cca529869bb47f0087c3f9d7ee/StyleHelper.ascx.vb#L3513

Changing that would be a breaking change, but maybe there's a way around that..