FiltersCompiler icon indicating copy to clipboard operation
FiltersCompiler copied to clipboard

removeparam value that starts with `/` parsed as invalid regexp

Open Alex-302 opened this issue 2 years ago • 6 comments

[20:14:55][ERROR]:Invalid rule in AdGuard URL Tracking filter: ||hktvmall.com/yuicombo?$script,removeparam=/_ui/shared/common/js/util/jquery.analytics-utils.js

Alex-302 avatar Nov 25 '22 09:11 Alex-302

error text: Error: "Invalid flags supplied to RegExp constructor 'shared/common/js/utilg'" in the rule: "||hktvmall.com/yuicombo?$script,removeparam=/_ui/shared\/common\/js\/util/jquery.analytics-utils.js/"

should be improved: Error: Invalid $removeparam value ...

slavaleleka avatar Nov 25 '22 16:11 slavaleleka

@yuki2718 @otksm

krystian3w avatar Dec 15 '22 03:12 krystian3w

I thought Alex reworte the rules.

Yuki2718 avatar Dec 15 '22 08:12 Yuki2718

@Yuki2718

Details

image

Alex-302 avatar Dec 15 '22 08:12 Alex-302

So now okay, not?

Yuki2718 avatar Dec 15 '22 08:12 Yuki2718

Yes. But error message should be improved.

Alex-302 avatar Dec 15 '22 08:12 Alex-302