adblocker
adblocker copied to clipboard
Complete automated tests for Filter#toString
Lets be sure that NetworkFilter#toString is able to correctly export all supported filter types.
when working on https://github.com/ghostery/adblocker/pull/3681 I've noticed some unexpected behaviour - I think simple filter like foo.com^ was converted to something quite longer.
require('@cliqz/adblocker').NetworkFilter.parse('foo.com^').toString()