1'use strict'; 2 3(function ( $ ) { 4 const filters = {}; 5 6 $.addFilter = function ( name, callback ) { 7 if ( !filters[name] ){ 8 filters[name] = []; 9 } 10 filters[name].push( callback ); 11 }; 12 13 $.applyFilter = function ( name, data ) { 14 if ( filters[name] ) { 15 return filters[name].reduce( function ( data, callback ) { 16 return callback( data ); 17 }, data ); 18 } else { 19 return data; 20 } 21 }; 22})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.