AdguardTeam / FiltersCompiler

A tool that compiles & validates filters
GNU Lesser General Public License v3.0
52 stars 12 forks source link

Incorrect conversion for uBO syntax #185

Closed Yuki2718 closed 7 months ago

Yuki2718 commented 1 year ago

webhostingpost.com#%#//scriptlet('adjust-setInterval', ',dataType:_', '1000', '0.02') in Annoyances filter is converted to webhostingpost.com##+js(nano-setInterval-booster, ,dataType:_, 1000, 0.02)

https://github.com/AdguardTeam/Scriptlets/blob/master/src/helpers/converter.ts#L375 Probably should be:

preparedParams = [
    parsedParams[0],
    ...parsedParams.slice(1).map(param => replaceAll(param, COMMA_SEPARATOR, ESCAPED_COMMA_SEPARATOR))
];