1$(document).ready(function () { 2 $('input[data-rule=number]').keyup(function () { 3 // store current positions in variables 4 var start = this.selectionStart, 5 end = this.selectionEnd; 6 7 var val = parseInt($(this).val()); 8 $(this).val(isNaN(val) ? '' : val); 9 10 // restore position from variable 11 this.setSelectionRange(start, end); 12 }); 13});
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.